aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weed/command/filer_sync.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/filer_sync.go b/weed/command/filer_sync.go
index 006f6794a..20464fa50 100644
--- a/weed/command/filer_sync.go
+++ b/weed/command/filer_sync.go
@@ -410,7 +410,7 @@ func genProcessFunction(sourcePath string, targetPath string, excludePaths []str
}
// handle deletions
if filer_pb.IsDelete(resp) {
- if doDeleteFiles {
+ if !doDeleteFiles {
return nil
}
if !strings.HasPrefix(string(sourceOldKey), sourcePath) {