diff --git a/internal/grpc/services/storageprovider/storageprovider.go b/internal/grpc/services/storageprovider/storageprovider.go index 3184a12b35..6b960b7d95 100644 --- a/internal/grpc/services/storageprovider/storageprovider.go +++ b/internal/grpc/services/storageprovider/storageprovider.go @@ -498,8 +498,8 @@ func (s *service) CreateContainer(ctx context.Context, req *provider.CreateConta var name string switch { case utils.IsRelativeReference(req.Ref): - req.Ref.Path = path.Dir(req.Ref.Path) - name = path.Base(req.Ref.Path) + req.Ref.Path, name = path.Split(req.Ref.Path) + parentRef = req.Ref case utils.IsAbsoluteReference(req.Ref): ref, err := s.unwrap(ctx, req.Ref) if err != nil {