[New-bugs-announce] [issue22024] Add to shutil the ability to wait until files are definitely deleted
report at bugs.python.org
Mon Jul 21 22:00:08 CEST 2014
New submission from Zachary Ware:
As suggested by Martin in msg170717, shutil should grow some way to block until a given file/directory is actually deleted, due to Windows' scheme of not actually deleting a file until all handles to it are closed.
This could take the form of a 'wait=False' parameter to rmtree that causes rmtree to block until the file/dir is gone (which could mean blocking indefinitely), or a new function "wait_until_deleted(name, timeout=None)".
Related issues: #15946, #7443, #19629
components: Library (Lib)
stage: needs patch
title: Add to shutil the ability to wait until files are definitely deleted
versions: Python 3.5
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce