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

Method getByPath

apps/webuiapps/src/lib/FileSystemStore.ts:113–117  ·  view source on GitHub ↗

* Get node by path

(path: string)

Source from the content-addressed store, hash-verified

111 * Get node by path
112 */
113 getByPath(path: string): FileNode | undefined {
114 const normalizedPath = normalizePath(path);
115 const id = this.pathIndex.get(normalizedPath);
116 return id ? this.nodes.get(id) : undefined;
117 }
118
119 /**
120 * Get children of a node

Callers 6

getChildrenByPathMethod · 0.95
addNodeMethod · 0.95
removeByPathMethod · 0.95
moveNodeMethod · 0.95
useFileSystemFunction · 0.80
useFilePathFunction · 0.80

Calls 1

normalizePathFunction · 0.90

Tested by

no test coverage detected