Skip to content

Commit

Permalink
fix: aws sdk v2 doesn't trim /
Browse files Browse the repository at this point in the history
  • Loading branch information
aldor007 committed May 22, 2023
1 parent 022bd62 commit 6165c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ func getClient(obj *object.FileObject) (storageClient, error) {

func getKey(obj *object.FileObject) string {
switch obj.Storage.Kind {
case "b2":
case "b2", "s3":
return strings.TrimPrefix(path.Join(obj.Storage.PathPrefix, obj.Key), "/")
default:
return path.Join(obj.Storage.PathPrefix, obj.Key)
Expand Down

0 comments on commit 6165c67

Please sign in to comment.