[issue1438480] shutil.move raises OSError when copystat fails

Eshan Singhal report at bugs.python.org
Wed Dec 11 11:18:10 EST 2019


Eshan Singhal <eshansinghal21 at gmail.com> added the comment:

Amending shutil.copy and shutil.copy2 to expose a method of ignoring the permission errors rather than changing the current behaviour would not fix the original issue without further changes in consumers of these functions to pass through the new parameter (i.e. shutil.move in this scenario).

This may be undesirable as copy_function is an optional parameter to shutil.move and so there would have to be a specialcase guard/check to see if the copy_function is shutil.copy or shutil.copy2 when passing in a new ignore_permission_errors parameter.

I propose a new issue to track adding functionality to optionally ignore permission issues for shutil.copy/shutil.copy2, and this issue can remain open.

----------
nosy: +eshan-singhal

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue1438480>
_______________________________________


More information about the Python-bugs-list mailing list