From 0988d71adb2da471c08370de70f6baf0aa39e980 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 8 Nov 2021 17:40:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=B5=8B=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=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 123ff4094..e7de0c77d 100755 --- a/modules/storage/obs.go +++ b/modules/storage/obs.go @@ -255,7 +255,7 @@ func GetAllObsListObjectUnderDir(bucket string, prefix string) ([]FileInfo, erro } fileInfo := FileInfo{ ModTime: val.LastModified.Format("2006-01-02 15:04:05"), - FileName: val.Key[len(prefix):], + FileName: val.Key[len(prefix)+1:], Size: val.Size, IsDir: isDir, ParenDir: "",