Browse Source

提交代码。

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

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

@@ -236,10 +236,10 @@ func ObsCopyManyFile(srcBucket string, srcPath string, destBucket string, destPa
log.Info("Page:%d\n", index)
index++
for _, val := range output.Contents {
if strings.HasSuffix(val.Key, "/") {
log.Info("copy file, src key=" + val.Key + " is dir, not copy.")
continue
}
// if strings.HasSuffix(val.Key, "/") {
// log.Info("copy file, src key=" + val.Key + " is dir, not copy.")
// continue
// }
destKey := destPath + val.Key[length:]
log.Info("copy file,bucket=" + srcBucket + " src key=" + val.Key + "destbucket=" + destBucket + " dest key=" + destKey)
ObsCopyFile(srcBucket, val.Key, destBucket, destKey)


Loading…
Cancel
Save