[Python-Dev] os.path.normcase rationale?
ronaldoussoren at mac.com
Fri Oct 8 14:14:00 CEST 2010
On 08 Oct, 2010,at 11:38 AM, Michael Foord <fuzzyman at voidspace.org.uk> wrote:
On 08/10/2010 09:41, Chris Withers wrote:
>>>> 4. Return the case of a filename in some arbitrarily-chosen
>>>> canonical form which does not depend on the file system?
AFAIK this is what the function is supposed to do: return a platform-dependent canonical form of the filename. And that is hopelessly naive on modern systems, on both linux and OSX some file systems are case insensitive and others are not. The default for Linux is case sensitive, but some filesystems are not (VFAT, CIFS), and the default on OSX is case insensitive, but some filesystems are case sensitive (NFS, case sensitive HFS+)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev