[New-bugs-announce] [issue37366] Add an "onitem" callback parameter to shutil.rmtree()

Jeffrey Kintscher report at bugs.python.org
Fri Jun 21 15:25:52 EDT 2019


New submission from Jeffrey Kintscher <websurfer at surf2c.net>:

Add an "onitem" callback paramter to shutil.rmtree() that, if provided, gets called for each directory entry as it is encountered.  This allows the caller to perform any required special handling of individual directory entries (e.g. unmounting a mount point, closing a file, shutting down a named pipe, etc.) before rmtree() attempts to remove them.

This enhancement is related to issue #36422.

----------
components: Library (Lib)
messages: 346245
nosy: Jeffrey.Kintscher
priority: normal
severity: normal
status: open
title: Add an "onitem" callback parameter to shutil.rmtree()
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37366>
_______________________________________


More information about the New-bugs-announce mailing list