Browse Source

提交测试代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/1036/head
zouap 3 years ago
parent
commit
eee11cf1ce
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/storage/obs.go

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

@@ -297,6 +297,7 @@ func GetObsListObject(jobName, parentDir string) ([]FileInfo, error) {
fileName = str1[len(str1)-2]
isDir = true
nextParentDir = fileName
log.Info("nextParentDir1=" + nextParentDir)
if fileName == parentDir || (fileName+"/") == setting.OutPutPath {
continue
}
@@ -304,7 +305,7 @@ func GetObsListObject(jobName, parentDir string) ([]FileInfo, error) {
fileName = str1[len(str1)-1]
isDir = false
}
log.Info("nextParentDir2=" + nextParentDir)
fileInfo := FileInfo{
ModTime: val.LastModified.Format("2006-01-02 15:04:05"),
FileName: fileName,


Loading…
Cancel
Save