Browse Source

fix: doDeleteFiles deletes files (#5198)

pull/5200/head
Konstantin Lebedev 12 months ago
committed by GitHub
parent
commit
8d23e36c45
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      weed/command/filer_sync.go

2
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) {

Loading…
Cancel
Save