Message384021
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. |
|
Date |
User |
Action |
Args |
2020-12-29 18:42:56 | winsonluk | set | recipients:
+ winsonluk |
2020-12-29 18:42:56 | winsonluk | set | messageid: <1609267376.56.0.274024517588.issue42782@roundup.psfhosted.org> |
2020-12-29 18:42:56 | winsonluk | link | issue42782 messages |
2020-12-29 18:42:56 | winsonluk | create | |
|