Eshan Singhal <eshansingha...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue1438480>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to