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

Method getParent

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

* Get parent of a node

(nodeId: string)

Source from the content-addressed store, hash-verified

141 * Get parent of a node
142 */
143 getParent(nodeId: string): FileNode | undefined {
144 const node = this.nodes.get(nodeId);
145 if (!node || !node.parentId) {
146 return undefined;
147 }
148 return this.nodes.get(node.parentId);
149 }
150
151 /**
152 * Get root node

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected