|
@@ -282,6 +282,9 @@ func GetOneLevelAllObjectUnderDir(bucket string, prefixRootPath string, relative |
|
|
input := &obs.ListObjectsInput{} |
|
|
input := &obs.ListObjectsInput{} |
|
|
input.Bucket = bucket |
|
|
input.Bucket = bucket |
|
|
input.Prefix = prefixRootPath + relativePath |
|
|
input.Prefix = prefixRootPath + relativePath |
|
|
|
|
|
if !strings.HasSuffix(input.Prefix, "/") { |
|
|
|
|
|
input.Prefix += "/" |
|
|
|
|
|
} |
|
|
output, err := ObsCli.ListObjects(input) |
|
|
output, err := ObsCli.ListObjects(input) |
|
|
fileInfos := make([]FileInfo, 0) |
|
|
fileInfos := make([]FileInfo, 0) |
|
|
prefixLen := len(input.Prefix) |
|
|
prefixLen := len(input.Prefix) |
|
|