]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39327: Close file descriptors as soon as possible in shutil.rmtree (GH-31384)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Feb 2022 08:07:54 +0000 (00:07 -0800)
committerGitHub <noreply@github.com>
Mon, 21 Feb 2022 08:07:54 +0000 (00:07 -0800)
commit959846be52b03da57f50ebc07f99ec262a86e860
tree6b31bd12cd0afaf6f6bc5ca9984a1c54023e3ab1
parente7115d53632bebf137ca7245a9ced7107c082e99
bpo-39327: Close file descriptors as soon as possible in shutil.rmtree (GH-31384)

It fixes the "Text File Busy" OSError when using 'rmtree' on a
windows-managed filesystem in via the VirtualBox shared folder
(and possible other scenarios like a windows-managed network file
system).
(cherry picked from commit b77158b4da449ec5b8f682816a79d004fd65ed07)

Co-authored-by: Lital Natan <litaln@gmail.com>
Lib/shutil.py
Misc/ACKS
Misc/NEWS.d/next/Library/2022-02-17-13-10-50.bpo-39327.ytIT7Z.rst [new file with mode: 0644]