zut.files.copyfile

zut.files.copyfile(src: str | Path, dst: str | Path, follow_symlinks=True)

Copy the contents (no metadata) in the most efficient way possible.

If follow_symlinks is False, dst will be created as a symbolic link if src is a symbolic link. If follow_symlinks is True, dst will be a copy of the file src refers to.