fix: rsync 加 --mkpath 自动递归创建目标多级目录
This commit is contained in:
1 parent
c61f1b09c8
commit
84b18f865a
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user