[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2021-03-20 Thread Eryk Sun
Eryk Sun added the comment: Filesystem paths in Windows are normally opened case insensitive, but a filesystem can choose to ignore this. NTFS does so for directories that flagged as case sensitive [1]. ntpath.normcase() doesn't incorporate this information. It would have to query the

[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2019-06-18 Thread Eryk Sun
Eryk Sun added the comment: > When running a VirtualBox Windows 7 guest on Linux I have found > that os.path.samefile() returns False when the filenames are the > same, e.g., > > f = r'V:\pdfs\boson1.pdf' > same = os.path.samefile(f, f) > print(same) # expected True; got False

[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2019-06-17 Thread Mark Summerfield
Mark Summerfield added the comment: When running a VirtualBox Windows 7 guest on Linux I have found that os.path.samefile() returns False when the filenames are the same, e.g., f = r'V:\pdfs\boson1.pdf' same = os.path.samefile(f, f) print(same) # expected True; got False I mention it here

[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2019-04-26 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2014-07-29 Thread Mark Lawrence
Mark Lawrence added the comment: How does the new pathlib module handle this? Also note from the docs for os.samefile() Changed in version 3.4: Windows now uses the same implementation as all other platforms.. -- nosy: +BreamoreBoy, steve.dower, zach.ware

[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2014-07-29 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4198 ___ ___ Python-bugs-list

[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2012-05-22 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: OK, I did some quick tests. Given a samba share with the following files A (contents: 'test: A') a (contents: 'test: a') B (contents: 'test: B') 1) opening \\share\files\A or \\share\files\a opens the same file - in my case 'test: A' 2)

[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2012-05-21 Thread Merlijn van Deen
Merlijn van Deen valhall...@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(rc:\mixedCASE)

[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2012-05-21 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +brian.curtin, tim.golden stage: - needs patch versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4198 ___

[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2010-06-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4198 ___ ___ Python-bugs-list

[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2008-10-24 Thread dawidjoubert
New submission from dawidjoubert [EMAIL PROTECTED]: The documentation for os.path.normcase reads the case gets normalized based on the file system http://docs.python.org/dev/library/os.path.html Current documentation: Normalize the case of a pathname. On Unix, this returns the path unchanged;