]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42782: Fail fast for permission errors in shutil.move() (GH-24001)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 3 Mar 2021 15:37:20 +0000 (07:37 -0800)
committerGitHub <noreply@github.com>
Wed, 3 Mar 2021 15:37:20 +0000 (07:37 -0800)
commit59e857650cf49a5e28cb82acc2641b1b53efeeeb
tree79024f826abfdc586b56abeb54d8af374b88c5ab
parent9c6c5da55f4b9f4e5dde33d10adaf3d7ee824c11
bpo-42782: Fail fast for permission errors in shutil.move() (GH-24001)

* 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>
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]