Author serhiy.storchaka
Recipients Robin Roth, berker.peksag, drawks, loewis, pablo.sole, pitrou, rossburton, serhiy.storchaka
Date 2016-06-03.10:06:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464948369.16.0.0152433519176.issue2466@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-06-03 10:06:09serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, pitrou, rossburton, drawks, berker.peksag, pablo.sole, Robin Roth
2016-06-03 10:06:09serhiy.storchakasetmessageid: <1464948369.16.0.0152433519176.issue2466@psf.upfronthosting.co.za>
2016-06-03 10:06:09serhiy.storchakalinkissue2466 messages
2016-06-03 10:06:09serhiy.storchakacreate