1
mirror of https://github.com/rclone/rclone synced 2024-11-23 00:06:55 +01:00

sync: don't warn about --no-traverse when --files-from is set

This commit is contained in:
Nick Gaya 2021-04-05 12:36:39 -07:00 committed by GitHub
parent 3859fe2f52
commit 9db7c51eaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,9 @@ func newSyncCopyMove(ctx context.Context, fdst, fsrc fs.Fs, deleteMode fs.Delete
// Input context - cancel this for graceful stop // Input context - cancel this for graceful stop
s.inCtx, s.inCancel = context.WithCancel(s.ctx) s.inCtx, s.inCancel = context.WithCancel(s.ctx)
if s.noTraverse && s.deleteMode != fs.DeleteModeOff { if s.noTraverse && s.deleteMode != fs.DeleteModeOff {
if !fi.HaveFilesFrom() {
fs.Errorf(nil, "Ignoring --no-traverse with sync") fs.Errorf(nil, "Ignoring --no-traverse with sync")
}
s.noTraverse = false s.noTraverse = false
} }
s.trackRenamesStrategy, err = parseTrackRenamesStrategy(ci.TrackRenamesStrategy) s.trackRenamesStrategy, err = parseTrackRenamesStrategy(ci.TrackRenamesStrategy)