|
|
|
@@ -210,8 +210,10 @@ func copyModelAttachmentFile(typeCloudBrain int, fileChunk *models.ModelFileChun |
|
|
|
} |
|
|
|
} else { |
|
|
|
bucketName := setting.Bucket |
|
|
|
log.Info("obs copy..srcObjectName=" + srcObjectName + " bucketName=" + bucketName) |
|
|
|
if storage.ObsGetFilesSize(bucketName, []string{destObjectName}) > 0 { |
|
|
|
log.Info("obs copy..srcObjectName=" + srcObjectName + " bucketName=" + bucketName + " destObjectName=" + destObjectName) |
|
|
|
size := storage.ObsGetFilesSize(bucketName, []string{destObjectName}) |
|
|
|
log.Info("size=" + fmt.Sprint(size)) |
|
|
|
if size > 0 { |
|
|
|
isExist = true |
|
|
|
} else { |
|
|
|
log.Info("obs copy..srcObjectName=" + srcObjectName + " bucketName=" + bucketName) |
|
|
|
|