mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
copy/sync/move: add --create-empty-src-dirs flag - fixes #2869
This commit is contained in:
@@ -48,7 +48,7 @@ destination.
|
||||
fsrc, srcFileName, fdst, dstFileName := cmd.NewFsSrcDstFiles(args)
|
||||
cmd.Run(true, true, command, func() error {
|
||||
if srcFileName == "" {
|
||||
return sync.CopyDir(fdst, fsrc)
|
||||
return sync.CopyDir(fdst, fsrc, false)
|
||||
}
|
||||
return operations.CopyFile(fdst, fsrc, dstFileName, srcFileName)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user