New submission from Winson Luk <[email protected]>:

shutil.move calls shutil.copytree(), then os.rmtree() (in that order). If the 
user does not have permission to delete the source directory, copytree succeeds 
but rmtree fails. The user sees an error (Permission Denied), but the 
destination directory is still created. The expected behavior should be a 
Permission Denied without the creation of the destination directory.

----------

_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42782>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to