MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / findNodeByPath

Function findNodeByPath

apps/webuiapps/src/lib/localFileApi.ts:37–44  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

35 });
36
37 const findNodeByPath = (path: string): FileNode | undefined => {
38 for (const node of store.values()) {
39 if (node.path === path) {
40 return node;
41 }
42 }
43 return undefined;
44 };
45
46 const listFiles = async (path = '/'): Promise<FileNode[]> => {
47 const normalizedPath = normalizePath(path);

Callers 4

listFilesFunction · 0.85
readFileFunction · 0.85
writeFileFunction · 0.85
deleteFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected