Browse Source

提交代码。

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

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

@@ -345,6 +345,7 @@ func GetAllObjectByBucketAndPrefix(bucket string, prefix string) ([]FileInfo, er
if val.Key == prefix { if val.Key == prefix {
continue continue
} }

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


Loading…
Cancel
Save