From 26ff403ae8014f8875613264e3e9984c2edee0d2 Mon Sep 17 00:00:00 2001 From: zouap Date: Tue, 9 Nov 2021 17:09:41 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/storage/obs.go b/modules/storage/obs.go index 2868e3ec2..c0508e81c 100755 --- a/modules/storage/obs.go +++ b/modules/storage/obs.go @@ -342,7 +342,7 @@ func GetAllObjectByBucketAndPrefix(bucket string, prefix string) ([]FileInfo, er for _, val := range output.Contents { var isDir bool log.Info("val.key=" + val.Key) - if val.Key == prefix { + if prefixLen == len(val.Key) { continue }