Eryk Sun <eryk...@gmail.com> 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

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:.

----------
nosy: +eryksun

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue4198>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to