Files
fastcopy/files_utils/folders_save.py
2025-05-27 13:10:13 +08:00

15 lines
283 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import subprocess
source_path = r"Y:\\test-copy"
target_path = r"Z:\\test-copy"
subprocess.run([
"robocopy",
source_path,
target_path,
"/E", # 包括子目录
"/R:3", # 重试次数
"/W:1", # 重试等待时间
"/MT:16" # 多线程16线程
])