|
|
|
@@ -57,8 +57,8 @@ func ObsHasObject(path string) (bool, error) { |
|
|
|
return hasObject, nil |
|
|
|
} |
|
|
|
|
|
|
|
func GetObsPartInfos(uuid string, uploadID string) (string, error) { |
|
|
|
key := strings.TrimPrefix(path.Join(setting.BasePath, path.Join(uuid[0:1], uuid[1:2], uuid, uuid)), "/") |
|
|
|
func GetObsPartInfos(uuid, uploadID, fileName string) (string, error) { |
|
|
|
key := strings.TrimPrefix(path.Join(setting.BasePath, path.Join(uuid[0:1], uuid[1:2], uuid, fileName)), "/") |
|
|
|
|
|
|
|
output, err := ObsCli.ListParts(&obs.ListPartsInput{ |
|
|
|
Bucket: setting.Bucket, |
|
|
|
|