New submission from Jeffrey Kintscher <websur...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue37366> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com