Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1^2
zouap 4 years ago
parent
commit
9c488c4876
1 changed files with 0 additions and 5 deletions
  1. +0
    -5
      modules/storage/obs.go

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

@@ -341,11 +341,9 @@ func GetAllObjectByBucketAndPrefix(bucket string, prefix string) ([]FileInfo, er
index++
for _, val := range output.Contents {
var isDir bool
log.Info("val.key=" + val.Key)
if prefixLen == len(val.Key) {
continue
}

if strings.HasSuffix(val.Key, "/") {
isDir = true
} else {
@@ -358,7 +356,6 @@ func GetAllObjectByBucketAndPrefix(bucket string, prefix string) ([]FileInfo, er
IsDir: isDir,
ParenDir: "",
}
log.Info("file name=" + val.Key)
fileInfos = append(fileInfos, fileInfo)
}
if output.IsTruncated {
@@ -374,9 +371,7 @@ func GetAllObjectByBucketAndPrefix(bucket string, prefix string) ([]FileInfo, er
return nil, err
}
}

return fileInfos, nil

}

func GetObsListObject(jobName, parentDir string) ([]FileInfo, error) {


Loading…
Cancel
Save