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

Method getChildren

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

* Get children of a node

(nodeId: string)

Source from the content-addressed store, hash-verified

120 * Get children of a node
121 */
122 getChildren(nodeId: string): FileNode[] {
123 const node = this.nodes.get(nodeId);
124 if (!node || node.type !== 'folder') {
125 return [];
126 }
127 return (node.children || [])
128 .map((id) => this.nodes.get(id))
129 .filter((n): n is FileNode => n !== undefined);
130 }
131
132 /**
133 * Get children by path

Callers 2

getChildrenByPathMethod · 0.95
useFileSystemFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected