Skip to content

Commit

Permalink
add all prefixes to have '/' at the end (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana authored Aug 17, 2021
1 parent b6f15b3 commit 052715c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/bench/benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 052715c

Please sign in to comment.