]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] bpo-42782: Fail fast for permission errors in shutil.move() (GH-24001) (#24725)
authorSenthil Kumaran <skumaran@gatech.edu>
Wed, 3 Mar 2021 16:04:00 +0000 (08:04 -0800)
committerGitHub <noreply@github.com>
Wed, 3 Mar 2021 16:04:00 +0000 (08:04 -0800)
commitbf566847f5a97e6ce391f8fb94185ee756cb94a2
tree545235c3062cb627312aa45dd516c731ceb25ed7
parent024325db5849c2cf1aa3b4c1013f73549712904e
[3.9] bpo-42782: Fail fast for permission errors in shutil.move() (GH-24001) (#24725)

* Fail fast in shutil.move() to avoid creating destination directories on failure.

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
(cherry picked from commit 132131b404e06ee1a19b040a1f96cd1118abed0c)

Co-authored-by: Winson Luk <winson.luk@gmail.com>
Co-authored-by: Winson Luk <winson.luk@gmail.com>
Lib/shutil.py
Lib/test/test_shutil.py
Misc/NEWS.d/next/Library/2020-12-29-13-46-57.bpo-42782.3r0HFY.rst [new file with mode: 0644]