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