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

Method DeleteNode

data/source/objects/handler.go:195–202  ·  view source on GitHub ↗
(ctx context.Context, request *tree.DeleteNodeRequest)

Source from the content-addressed store, hash-verified

193}
194
195func (t *FsBrowser) DeleteNode(ctx context.Context, request *tree.DeleteNodeRequest) (*tree.DeleteNodeResponse, error) {
196 fs, _ := t.getFS(ctx)
197 p := filesystem.ToFilePath(request.Node.Path)
198 if e := fs.Remove(p); e != nil {
199 return nil, e
200 }
201 return &tree.DeleteNodeResponse{Success: true}, nil
202}

Callers

nothing calls this directly

Calls 2

getFSMethod · 0.95
ToFilePathFunction · 0.92

Tested by

no test coverage detected