From 8d23e36c4512679e1c866bf166bd57b6b52bcc90 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Sat, 13 Jan 2024 00:04:29 +0500 Subject: [PATCH] fix: doDeleteFiles deletes files (#5198) --- weed/command/filer_sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {