From 4599b54f97e9268aa71d81f617e41c531754748f Mon Sep 17 00:00:00 2001 From: zouap Date: Tue, 9 Nov 2021 14:52:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- modules/storage/obs.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/storage/obs.go b/modules/storage/obs.go index 54d4a0a21..f22bc1dda 100755 --- a/modules/storage/obs.go +++ b/modules/storage/obs.go @@ -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)