Serhiy Storchaka added the comment:

What if use os.stat(dirname(path)) instead of os.lstat(parent)?

-    if isinstance(path, bytes):
-        parent = join(path, b'..')
-    else:
-        parent = join(path, '..')
     try:
-        s2 = os.lstat(parent)
+        s2 = os.stat(dirname(path))
     except OSError:
         return False

----------
nosy: +serhiy.storchaka

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

Reply via email to