This commit is contained in:
chrislu
2024-01-18 09:13:14 -08:00
parent be166b434f
commit 15b66a6633
2 changed files with 9 additions and 4 deletions

View File

@@ -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
}