shutil.copy2()

shutil.copy2(src, dst)[source]

Copy data and all stat info (“cp -p src dst”).

The destination may be a directory.