Browse Source

Merge branch 'zouap' of https://git.openi.org.cn/OpenI/aiforge into zouap

pull/1036/head
zhoupzh 3 years ago
parent
commit
9ec04862f7
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/storage/obs.go

+ 3
- 0
modules/storage/obs.go View File

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


Loading…
Cancel
Save