Barney Gale <[email protected]> added the comment:
Fair enough. Users who wanted to avoid copying file metadata would then do
something like this, I suppose?
import pathlib
import shutil
path = pathlib.Path('foo')
path.move('bar', copy_function=shutil.copy)
I guess the downside here is that users would still need to `import shutil` to
do this. But I see the utility of allowing any copy_function to be supplied!
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46317>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com