From bcdd73369f9a20776a79e85e689e7d069c30fe0c Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 24 Jan 2017 17:43:58 +0000 Subject: [PATCH] Ignore --delete-before with --track-renames --- fs/sync.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/sync.go b/fs/sync.go index 8da107e3b..24c19e463 100644 --- a/fs/sync.go +++ b/fs/sync.go @@ -83,6 +83,10 @@ func newSyncCopyMove(fdst, fsrc Fs, Delete bool, DoMove bool) (*syncCopyMove, er s.trackRenames = false } } + if s.deleteBefore && s.trackRenames { + ErrorLog(fdst, "Ignoring --delete-before with --track-renames - using --delete-after") + s.deleteBefore = false + } if s.noTraverse && s.trackRenames { Debug(s.fdst, "Ignoring --no-traverse with --track-renames") s.noTraverse = false