[issue15556] os.stat fails for file pending delete on Windows
Martin v. Löwis
report at bugs.python.org
Sat Aug 4 18:34:17 CEST 2012
Martin v. Löwis added the comment:
Why do you think the behavior is broken? It looks right to me - it's not possible to get file information for a file that is scheduled for deletion.
ISTM that rather os.path.exists has non-intuitive behavior; it shouldn't infer from the PermissionError that the file does not exist, but that it is not able to tell.
However, this is not a bug, but documented behavior, see
http://docs.python.org/library/os.path.html#os.path.exists
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15556>
_______________________________________
More information about the Python-bugs-list
mailing list