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

Method DeleteNode

common/nodes/core/handler-exec-struct.go:112–121  ·  view source on GitHub ↗
(ctx context.Context, in *tree.DeleteNodeRequest, opts ...grpc.CallOption)

Source from the content-addressed store, hash-verified

110}
111
112func (f *StructStorageHandler) DeleteNode(ctx context.Context, in *tree.DeleteNodeRequest, opts ...grpc.CallOption) (*tree.DeleteNodeResponse, error) {
113 resp, e := f.Next.DeleteNode(ctx, in, opts...)
114 if e == nil {
115 if session := in.IndexationSession; session != "" {
116 ctx = runtimecontext.WithAdditionalMetadata(ctx, map[string]string{common.XPydioSessionUuid: session})
117 }
118 f.publish(ctx, "in", tree.NodeChangeEvent_DELETE, in.GetNode().Clone())
119 }
120 return resp, e
121}
122
123func (f *StructStorageHandler) CopyObject(ctx context.Context, from *tree.Node, to *tree.Node, requestData *models.CopyRequestData) (models.ObjectInfo, error) {
124 i, e := f.Next.CopyObject(ctx, from, to, requestData)

Callers

nothing calls this directly

Calls 4

publishMethod · 0.95
DeleteNodeMethod · 0.65
CloneMethod · 0.65
GetNodeMethod · 0.65

Tested by

no test coverage detected