From 052715cea88004ebe07db7bc98384df887e9e615 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 17 Aug 2021 07:49:12 -0700 Subject: [PATCH] add all prefixes to have '/' at the end (#183) --- pkg/bench/benchmark.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/bench/benchmark.go b/pkg/bench/benchmark.go index e99ceee7..afa73731 100644 --- a/pkg/bench/benchmark.go +++ b/pkg/bench/benchmark.go @@ -150,7 +150,9 @@ func (c *Common) deleteAllInBucket(ctx context.Context, prefixes ...string) { WithVersions: c.Versioned, } for _, prefix := range prefixes { - opts.Prefix = prefix + if c.Source().Prefix() != "" { + opts.Prefix = prefix + "/" + } for object := range cl.ListObjects(ctx, c.Bucket, opts) { if object.Err != nil { c.Error(object.Err)