[issue30480] samefile and sameopenfile fail for WebDAV mapped drives

Armin Rigo report at bugs.python.org
Sun Jun 11 16:15:58 EDT 2017


Armin Rigo added the comment:

Another example of this misbehaviour: there are cases where ``os.stat()`` will internally fail to obtain the whole stat info (in some case related to permissions) and silently fall back to the same behaviour as Python 2.7.  In particular, it will return a result with ``st_dev == st_ino == 0``.  Of course, ``os.path.samefile()`` will then consider all such files as "the same one", which is nonsense.

----------
nosy: +arigo

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30480>
_______________________________________


More information about the Python-bugs-list mailing list