[agent-operator] - DLTU download from oss part
This commit is contained in:
@@ -143,15 +143,16 @@ func (op *MinioOperator) DownloadFileFromOssFullUrl(ossFullUrl string, filePath
|
||||
return false
|
||||
}
|
||||
|
||||
bucketName := split[0]
|
||||
fileName := strings.Join(split[1:], "/")
|
||||
//realFileName := split[len(split)-1]
|
||||
ossFullUrl = strings.TrimPrefix(ossFullUrl, split[0]+"/")
|
||||
bucketName := split[1]
|
||||
|
||||
fileName := strings.TrimPrefix(ossFullUrl, bucketName)
|
||||
|
||||
return op.DownloadFile(bucketName, filePath, fileName)
|
||||
|
||||
}
|
||||
|
||||
// DownloadFile objectName格式为 cmlc-installation/tmp/123/123.txt
|
||||
// DownloadFile fileNameWithPrefix格式为 tmp/123/123.txt
|
||||
func (op *MinioOperator) DownloadFile(bucketName, filePath, fileNameWithPrefix string) bool {
|
||||
|
||||
separator := os.PathSeparator
|
||||
|
||||
Reference in New Issue
Block a user