mirror of
https://github.com/rclone/rclone.git
synced 2025-01-19 18:22:46 +08:00
Clarify logging and docs for --no-traverse incompatibilities - fixes #1059
This commit is contained in:
parent
d091d4a8bb
commit
c0ad29c06c
|
@ -722,6 +722,8 @@ This option defaults to `false`.
|
||||||
|
|
||||||
The `--no-traverse` flag controls whether the destination file system
|
The `--no-traverse` flag controls whether the destination file system
|
||||||
is traversed when using the `copy` or `move` commands.
|
is traversed when using the `copy` or `move` commands.
|
||||||
|
`--no-traverse` is not compatible with `sync` and will be ignored if
|
||||||
|
you supply it with `sync`.
|
||||||
|
|
||||||
If you are only copying a small number of files and/or have a large
|
If you are only copying a small number of files and/or have a large
|
||||||
number of files on the destination then `--no-traverse` will stop
|
number of files on the destination then `--no-traverse` will stop
|
||||||
|
|
|
@ -72,7 +72,7 @@ func newSyncCopyMove(fdst, fsrc Fs, deleteMode DeleteMode, DoMove bool) (*syncCo
|
||||||
trackRenamesCh: make(chan Object, Config.Checkers),
|
trackRenamesCh: make(chan Object, Config.Checkers),
|
||||||
}
|
}
|
||||||
if s.noTraverse && s.deleteMode != DeleteModeOff {
|
if s.noTraverse && s.deleteMode != DeleteModeOff {
|
||||||
Debug(s.fdst, "Ignoring --no-traverse with sync")
|
ErrorLog(nil, "Ignoring --no-traverse with sync")
|
||||||
s.noTraverse = false
|
s.noTraverse = false
|
||||||
}
|
}
|
||||||
if s.trackRenames {
|
if s.trackRenames {
|
||||||
|
@ -92,7 +92,7 @@ func newSyncCopyMove(fdst, fsrc Fs, deleteMode DeleteMode, DoMove bool) (*syncCo
|
||||||
s.deleteMode = DeleteModeAfter
|
s.deleteMode = DeleteModeAfter
|
||||||
}
|
}
|
||||||
if s.noTraverse {
|
if s.noTraverse {
|
||||||
Debug(s.fdst, "Ignoring --no-traverse with --track-renames")
|
ErrorLog(nil, "Ignoring --no-traverse with --track-renames")
|
||||||
s.noTraverse = false
|
s.noTraverse = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user