Message346010
> 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:. |
|
Date |
User |
Action |
Args |
2019-06-18 21:14:49 | eryksun | set | recipients:
+ eryksun, tim.golden, mark, ezio.melotti, dawidjoubert, valhallasw, zach.ware, steve.dower |
2019-06-18 21:14:49 | eryksun | set | messageid: <1560892489.31.0.886728693543.issue4198@roundup.psfhosted.org> |
2019-06-18 21:14:49 | eryksun | link | issue4198 messages |
2019-06-18 21:14:49 | eryksun | create | |
|