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