From 44373e65a16adbf69f36d9f5ee7e412730b8dda0 Mon Sep 17 00:00:00 2001 From: haibingtown Date: Fri, 22 Dec 2023 21:52:59 +0800 Subject: [PATCH] fix oss import bug --- pkg/filesystem/driver/oss/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/filesystem/driver/oss/handler.go b/pkg/filesystem/driver/oss/handler.go index ccccbd2c..26e5bda3 100644 --- a/pkg/filesystem/driver/oss/handler.go +++ b/pkg/filesystem/driver/oss/handler.go @@ -172,6 +172,7 @@ func (handler *Driver) List(ctx context.Context, base string, recursive bool) ([ if err != nil { continue } + if strings.HasSuffix(object.Key, "/") { res = append(res, response.Object{ Name: path.Base(object.Key),