diff options
author | Winson Luk <winson.luk@gmail.com> | 2021-03-02 20:53:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-02 20:53:15 (GMT) |
commit | 132131b404e06ee1a19b040a1f96cd1118abed0c (patch) | |
tree | 411a400f75855423fc83797fc407028e903f4ba9 /Misc | |
parent | b36349a647b2bf8174f0e736a4fc347e92ae204e (diff) | |
download | cpython-132131b404e06ee1a19b040a1f96cd1118abed0c.zip cpython-132131b404e06ee1a19b040a1f96cd1118abed0c.tar.gz cpython-132131b404e06ee1a19b040a1f96cd1118abed0c.tar.bz2 |
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>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-12-29-13-46-57.bpo-42782.3r0HFY.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-12-29-13-46-57.bpo-42782.3r0HFY.rst b/Misc/NEWS.d/next/Library/2020-12-29-13-46-57.bpo-42782.3r0HFY.rst new file mode 100644 index 0000000..065df9b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-12-29-13-46-57.bpo-42782.3r0HFY.rst @@ -0,0 +1,2 @@ +Fail fast in :func:`shutil.move()` to avoid creating destination directories on +failure. |