ID EN
Shutil

copyfile

Python 3.11

Copy the contents (no metadata) of the file named src to a file named dst and return dst in the most efficient way possible. src and dst are path-like objects or path names given as strings.

Syntax

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

See Also

path-like objects copy() SameFileError OSError auditing event IOError OSError SameFileError