From b004996d515cd7e2e6328c783af9da8a4d026510 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Tue, 13 Jul 2021 17:45:38 +0300 Subject: [PATCH] [#155] Fix KeyCount Signed-off-by: Denis Kirillov --- api/handler/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handler/list.go b/api/handler/list.go index f8324b26..af179bab 100644 --- a/api/handler/list.go +++ b/api/handler/list.go @@ -241,7 +241,7 @@ func encodeV2(arg *listObjectsArgs, list *layer.ListObjectsInfo) *ListObjectsV2R Name: arg.Bucket, EncodingType: arg.Encode, Prefix: arg.Prefix, - KeyCount: len(list.Objects), + KeyCount: len(list.Objects) + len(list.Prefixes), MaxKeys: arg.MaxKeys, Delimiter: arg.Delimiter, StartAfter: arg.StartAfter,