]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42782: Fail fast for permission errors in shutil.move() (GH-24001)
authorWinson Luk <winson.luk@gmail.com>
Tue, 2 Mar 2021 20:53:15 +0000 (15:53 -0500)
committerGitHub <noreply@github.com>
Tue, 2 Mar 2021 20:53:15 +0000 (12:53 -0800)
commit132131b404e06ee1a19b040a1f96cd1118abed0c
tree411a400f75855423fc83797fc407028e903f4ba9
parentb36349a647b2bf8174f0e736a4fc347e92ae204e
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>
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]