1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-06 10:33:34 +00:00

Get rid of fs.CopyFs and replace with fs.Sync in preparation for Object.Update

This commit is contained in:
Nick Craig-Wood
2014-04-18 16:34:59 +01:00
parent bb0bf2fa8e
commit d6a5bfe2d4
3 changed files with 40 additions and 78 deletions

View File

@@ -61,7 +61,7 @@ var Commands = []Command{
unchanged files, testing first by modification time then by
MD5SUM. Doesn't delete files from the destination.`,
Run: func(fdst, fsrc fs.Fs) {
err := fs.CopyFs(fdst, fsrc)
err := fs.Sync(fdst, fsrc, false)
if err != nil {
log.Fatalf("Failed to copy: %v", err)
}
@@ -79,7 +79,7 @@ var Commands = []Command{
exist in destination. Since this can cause data loss, test
first with the --dry-run flag.`,
Run: func(fdst, fsrc fs.Fs) {
err := fs.Sync(fdst, fsrc)
err := fs.Sync(fdst, fsrc, true)
if err != nil {
log.Fatalf("Failed to sync: %v", err)
}