[issue4843] copytree improvments
Antoine Pitrou
report at bugs.python.org
Mon Jan 5 13:36:45 CET 2009
Antoine Pitrou <pitrou at free.fr> added the comment:
I suggest a more generic and powerful API change:
copytree(src, dst, symlinks=False, ignore=None) -> None
becomes:
copytree(src, dst, symlinks=False, ignore=None, callback=None) -> None
where callback, if not None, is called with each (filename, src_dir,
dst_dir) and can return either True or False depending on whether the
copy must really occur or not.
Then you should be able implement the four distutils option in terms of
the callback.
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4843>
_______________________________________
More information about the Python-bugs-list
mailing list