[issue15556] os.stat fails for file pending delete on Windows

Jeremy Kloth report at bugs.python.org
Sat Aug 4 18:07:43 CEST 2012


New submission from Jeremy Kloth:

os.stat fails when called on a file that is pending delete but is still in the directory listing.

This in turn causes os.path.exists to return the wrong result.

Attached is a test case demonstrating this broken behavior.

----------
components: Library (Lib), Windows
files: stat-bug.py
messages: 167414
nosy: jkloth
priority: normal
severity: normal
status: open
title: os.stat fails for file pending delete on Windows
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file26687/stat-bug.py

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


More information about the Python-bugs-list mailing list