[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive
Merlijn van Deen
report at bugs.python.org
Mon May 21 22:37:44 CEST 2012
Merlijn van Deen <valhallasw at gmail.com> added the comment:
To confirm this behaviour is still current:
Python 3.3.0a1+ (default:958a98bf924e+, May 21 2012, 22:18:16)
[GCC 4.5.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ntpath
>>> ntpath.normcase(r"c:\mixedCASE")
'c:\\mixedcase'
In general, I'm not so sure of the use case of the function /at all/ - possibly something like
if normcase(path1) == normcase(path2):
...
however, this can give the false impression that two files are the same - I think, given a Samba share with two files 'A' and 'a', it's possible to access both files from windows.
----------
nosy: +valhallasw
versions: +Python 3.3, Python 3.4 -Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4198>
_______________________________________
More information about the Python-bugs-list
mailing list