ID EN
Shutil

copy2

Python 3.11

Identical to copy() except that copy2() also attempts to preserve file metadata.

Syntax

PYTHON
shutil.copy2(src, dst, *, follow_symlinks=True)

See Also

copy() copy2() copy2() copy2() copy2() copy2() copystat() copystat()