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

Method ReadNode

data/source/objects/handler.go:110–120  ·  view source on GitHub ↗
(ctx context.Context, request *tree.ReadNodeRequest)

Source from the content-addressed store, hash-verified

108}
109
110func (t *FsBrowser) ReadNode(ctx context.Context, request *tree.ReadNodeRequest) (*tree.ReadNodeResponse, error) {
111 response := &tree.ReadNodeResponse{}
112 p := filesystem.ToFilePath(request.Node.Path)
113 fs, _ := t.getFS(ctx)
114 if fileInfo, e := fs.Stat(p); e != nil {
115 return nil, e
116 } else {
117 response.Node = t.FileInfoToNode(request.Node.Path, fileInfo)
118 }
119 return response, nil
120}
121
122func (t *FsBrowser) ListNodes(request *tree.ListNodesRequest, stream tree.NodeProvider_ListNodesServer) error {
123

Callers

nothing calls this directly

Calls 4

getFSMethod · 0.95
FileInfoToNodeMethod · 0.95
ToFilePathFunction · 0.92
StatMethod · 0.45

Tested by

no test coverage detected