[issue46317] Pathlib.rename isn't robust

Barney Gale report at bugs.python.org
Fri Jan 14 14:59:17 EST 2022


Barney Gale <barney.gale at gmail.com> added the comment:

shutil.move() accepts a `copy_function` argument:

    shutil.move(src, dst, copy_function=copy2)

It's possible to set `copy_function=copy` to skip copying file metadata.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46317>
_______________________________________


More information about the Python-bugs-list mailing list