Eryk Sun <eryk...@gmail.com> added the comment:
Issue 28075 extended the os.stat() and os.lstat() implementation to query basic stat informatiom from the parent directory if opening the file fails with ERROR_ACCESS_DENIED. This change first became available in Python 3.5.3. Previously it was only querying the parent directory for the case of ERROR_SHARING_VIOLATION, which is unlikely since the open doesn't request and data access that requires sharing. It does handle one case that I know of. NTFS refuses to share even metadata access for a system paging file such as "C:\pagefile.sys". ---------- resolution: -> fixed stage: -> resolved status: open -> closed superseder: -> os.stat fails when access is denied _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue26968> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com