This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author udo.eberhardt
Recipients paul.moore, steve.dower, tim.golden, udo.eberhardt, zach.ware
Date 2016-03-28.13:24:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1459171442.9.0.718616645463.issue26655@psf.upfronthosting.co.za>
In-reply-to
Content
On Windows Path.glob does not always return the file name with correct case. 

If the current directory contains a file named MixedCase.txt then the following script:

import pathlib
p = pathlib.Path('.')
print(list(p.glob('*.txt')))
print(list(p.glob('Mixedcase.txt')))

yields:
[WindowsPath('MixedCase.txt')]
[WindowsPath('mixedcase.txt')]

Problem: The result of the second call to glob should be 'MixedCase.txt' as well. I would expect that glob returns a file name exactly as it is spelled in the file system.
History
Date User Action Args
2016-03-28 13:24:02udo.eberhardtsetrecipients: + udo.eberhardt, paul.moore, tim.golden, zach.ware, steve.dower
2016-03-28 13:24:02udo.eberhardtsetmessageid: <1459171442.9.0.718616645463.issue26655@psf.upfronthosting.co.za>
2016-03-28 13:24:02udo.eberhardtlinkissue26655 messages
2016-03-28 13:24:02udo.eberhardtcreate