Skip to content

Commit 6165c67

Browse files
committed
fix: aws sdk v2 doesn't trim /
1 parent 022bd62 commit 6165c67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/storage/storage.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ func getClient(obj *object.FileObject) (storageClient, error) {
460460

461461
func getKey(obj *object.FileObject) string {
462462
switch obj.Storage.Kind {
463-
case "b2":
463+
case "b2", "s3":
464464
return strings.TrimPrefix(path.Join(obj.Storage.PathPrefix, obj.Key), "/")
465465
default:
466466
return path.Join(obj.Storage.PathPrefix, obj.Key)

0 commit comments

Comments
 (0)