Message267085
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 |
|
Date |
User |
Action |
Args |
2016-06-03 10:06:09 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, loewis, pitrou, rossburton, drawks, berker.peksag, pablo.sole, Robin Roth |
2016-06-03 10:06:09 | serhiy.storchaka | set | messageid: <1464948369.16.0.0152433519176.issue2466@psf.upfronthosting.co.za> |
2016-06-03 10:06:09 | serhiy.storchaka | link | issue2466 messages |
2016-06-03 10:06:09 | serhiy.storchaka | create | |
|