diff --git a/pkg/storage/storage.go b/pkg/storage/storage.go index c1c7473..fec8955 100644 --- a/pkg/storage/storage.go +++ b/pkg/storage/storage.go @@ -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)