8000 add all prefixes to have '/' at the end by harshavardhana · Pull Request #183 · minio/warp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add all prefixes to have '/' at the end #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
< 8000 div data-view-component="true" class="Popover-message Box position-relative mx-auto text-left color-shadow-large p-2 mt-2">
Diff view
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