import shutil src = "path/to/file.txt" dst = "path/to/dest_dir" shutil.copy(src, dst) import shutil # To preserve all file metadata when copying src = "path/to/file.txt" dst = "path/to/dest_dir" shutil.copy2(src, dst)