[issue1117601] os.path.exists returns false negatives in MAC environments.

Colin Alston 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
file. 

os.path.exists should absolutely raise a Permission exception.

----------
nosy: +cda32

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


More information about the Python-bugs-list mailing list