[Python-Dev] casefolding in pathlib (PEP 428)
mail at timgolden.me.uk
Sat Apr 13 21:26:24 CEST 2013
On 12/04/2013 22:15, Larry Hastings wrote:
> On 04/12/2013 10:05 AM, Guido van Rossum wrote:
>> On Fri, Apr 12, 2013 at 1:39 AM, Antoine Pitrou <solipsis at pitrou.net>
>>> I think we want glob("*.py") to find
>>> "SETUP.PY" under Windows. Anything else will probably be surprising to
>>> users of that platform.
>> Yeah, I suppose so. But there are more crazy details. E.g. IIRC
>> Windows silently ignores trailing dots in filenames. Do we want
>> "*.py." to match SETUP.PY then?
> Someone who is fresher than I am at Windows programming should answer
> this, but AFAICT Win32 provides no API that will tell you if a
> particular filename / volume is case sensitive.
I don't have web access at the moment to check but IIRC the
GetVolumeInformation call does return an indicator of whether the volume
is case-sensitive via the VOLUME_FLAG flag enum. At least, it claims to:
I don't have access to a case-sensitive filesystem to check whether it's
lying or not.
More information about the Python-Dev