fix: rsync 加 --mkpath 自动递归创建目标多级目录

This commit is contained in:
AskaEth committed 2026-08-22 13:45:11 +08:00
1 parent c61f1b09c8
commit 84b18f865a
1 file changed
+1 -1
+1 -1
View File
@@ -262,7 +262,7 @@ class RsyncBackend:
exclude_from: str = "", skip_existing: bool = False,
append: bool = True, **_) -> list[str]:
src = src.rstrip("/") + "/"
cmd = ["rsync", "-a", "-v", "--info=progress2"]
cmd = ["rsync", "-a", "-v", "--info=progress2", "--mkpath"]
if checksum:
cmd.append("--checksum")
if skip_existing: