[issue35648] Add use_srcentry parameter to shutil.copytree()
Giampaolo Rodola'
report at bugs.python.org
Sun Feb 24 04:13:35 EST 2019
Giampaolo Rodola' <g.rodola at gmail.com> added the comment:
When user uses copy_function argument, the callback function should always receive path strings, both for consistency and for not breaking backward compatibility. This line:
use_srcentry = copy_function is copy2 or copy_function is copy
...makes sure of that (only passes DirEntry instances around if copy_function is not specified by user).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35648>
_______________________________________
More information about the Python-bugs-list
mailing list