MCPcopy Create free account
hub / github.com/pydio/cells / CreateNode

Method CreateNode

common/nodes/binaries/handler-binary-store.go:170–175  ·  view source on GitHub ↗

THIS STORE IS NOT WRITEABLE

(ctx context.Context, in *tree.CreateNodeRequest, opts ...grpc.CallOption)

Source from the content-addressed store, hash-verified

168///////////////////////////////
169
170func (a *Handler) CreateNode(ctx context.Context, in *tree.CreateNodeRequest, opts ...grpc.CallOption) (*tree.CreateNodeResponse, error) {
171 if a.isStorePath(in.Node.Path) {
172 return nil, errors.WithMessage(errors.BinaryCannotWriteStore, a.StoreName)
173 }
174 return a.Next.CreateNode(ctx, in, opts...)
175}
176
177func (a *Handler) UpdateNode(ctx context.Context, in *tree.UpdateNodeRequest, opts ...grpc.CallOption) (*tree.UpdateNodeResponse, error) {
178 if a.isStorePath(in.From.Path) || a.isStorePath(in.To.Path) {

Callers

nothing calls this directly

Calls 2

isStorePathMethod · 0.95
CreateNodeMethod · 0.65

Tested by

no test coverage detected