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)
keywords: easy
messages: 223604
nosy: zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Add to shutil the ability to wait until files are definitely deleted
type: enhancement
versions: Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22024>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to