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 eryksun
Recipients dawidjoubert, eryksun, ezio.melotti, mark, steve.dower, tim.golden, valhallasw, zach.ware
Date 2019-06-18.21:14:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560892489.31.0.886728693543.issue4198@roundup.psfhosted.org>
In-reply-to
Content
> 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

genericpath.samefile is unrelated to ntpath.normcase. It's based on comparing the st_dev and st_ino values from the os.stat result of each file. There are known problems with relying solely on the Windows implementation of os.stat for this. Please create a new issue to add your case to the list. Include details about the local volume or UNC share that's mounted as drive V:.
History
Date User Action Args
2019-06-18 21:14:49eryksunsetrecipients: + eryksun, tim.golden, mark, ezio.melotti, dawidjoubert, valhallasw, zach.ware, steve.dower
2019-06-18 21:14:49eryksunsetmessageid: <1560892489.31.0.886728693543.issue4198@roundup.psfhosted.org>
2019-06-18 21:14:49eryksunlinkissue4198 messages
2019-06-18 21:14:49eryksuncreate