flokX <accou...@fkcore.de> added the comment:

You are right about the bug. The funny thing is, I never saw it.

The problem I see is another.
The use_srcentry variable in the _copytree function is set by determining if 
the copy_function is the function copy2 or copy. If so the srcentry is passed 
to the copy_function. If the user passes a custom copy_function to copytree, 
this function will ever become only the srcname and not the srcentry. To 
summarize it: The integrated copy_functions get the srcentry and custom 
copy_functions get the srcname.
But what is if the custom copy_function is a edited copy2 function or needs the 
srcentry? In order to fix this was my idea to have a parameter to control if 
the custom copy_function get the srcentry or a srcname.
Please write me if there is anything misconception in my thoughts or other 
objections?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35648>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to