diff options
| author | chrislu <chris.lu@gmail.com> | 2024-01-18 09:13:14 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-01-18 09:13:14 -0800 |
| commit | 15b66a6633149a2e99ef5d53cd788bdfd143e8b7 (patch) | |
| tree | 36902c0a2765a4510f7c15424e80dbdbd54df0b1 /weed/command/filer_sync.go | |
| parent | be166b434f002dba684e8e3630a1e87fdb6a96db (diff) | |
| download | seaweedfs-15b66a6633149a2e99ef5d53cd788bdfd143e8b7.tar.xz seaweedfs-15b66a6633149a2e99ef5d53cd788bdfd143e8b7.zip | |
refactor
Diffstat (limited to 'weed/command/filer_sync.go')
| -rw-r--r-- | weed/command/filer_sync.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/command/filer_sync.go b/weed/command/filer_sync.go index d84c6325c..dc954e805 100644 --- a/weed/command/filer_sync.go +++ b/weed/command/filer_sync.go @@ -394,9 +394,11 @@ func genProcessFunction(sourcePath string, targetPath string, excludePaths []str if debug { glog.V(0).Infof("received %v", resp) } - if strings.Contains(resp.Directory, "/"+s3_constants.MultipartUploadsFolder+"/") { + + if isMultipartUploadDir(resp.Directory) { return nil } + if !strings.HasPrefix(resp.Directory, sourcePath) { return nil } |
