[issue1117601] os.path.exists returns false negatives in MAC environments.
report at bugs.python.org
Mon Aug 24 10:22:15 CEST 2009
Colin Alston <colin.alston at gmail.com> added the comment:
I also hit upon this issue and IMHO returning False in a "permission
denied" scenario is less than obvious behaviour.
It also means I have no way to catch this edge case in my own code
immediately, I have to implement far larger logic to check now if False
means the file doesn't exist, or if the user doesn't have access to the
os.path.exists should absolutely raise a Permission exception.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list