]> 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:46 +0000 (00:07 -0800)
committerGitHub <noreply@github.com>
Mon, 21 Feb 2022 08:07:46 +0000 (00:07 -0800)
commit95d6271f1997580f8cb8a2985d0cd48af912763f
tree57fd2b0a90817075a05792b13d87f787ba9c7d2d
parenta2e13ec0ce050a9050ec195ec0cc2a540912480d
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]