Browse Source

提交代码。

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

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

@@ -293,8 +293,8 @@ func GetAllObsListObjectUnderDir(bucket string, prefix string) ([]FileInfo, erro
if val.Key == prefix { if val.Key == prefix {
continue continue
} }
log.Info("sub str=" + val.Key[prefixLen:])
if strings.Contains(val.Key[prefixLen:], "/") {
log.Info("sub str=" + val.Key[prefixLen:len(val.Key)-1])
if strings.Contains(val.Key[prefixLen:len(val.Key)-1], "/") {
continue continue
} }
if strings.HasSuffix(val.Key, "/") { if strings.HasSuffix(val.Key, "/") {


Loading…
Cancel
Save