MCPcopy Create free account
hub / github.com/esengine/esengine / loadChildren

Function loadChildren

packages/editor-app/src/components/FileTree.tsx:315–323  ·  view source on GitHub ↗
(node: TreeNode)

Source from the content-addressed store, hash-verified

313 };
314
315 const loadChildren = async (node: TreeNode): Promise<TreeNode[]> => {
316 try {
317 const entries = await TauriAPI.listDirectory(node.path);
318 return entriesToNodes(entries);
319 } catch (error) {
320 console.error('Failed to load children:', error);
321 return [];
322 }
323 };
324
325 const toggleNode = async (nodePath: string) => {
326 const updateTree = async (nodes: TreeNode[]): Promise<TreeNode[]> => {

Callers 2

updateTreeFunction · 0.85
restoreExpandedStateFunction · 0.85

Calls 3

entriesToNodesFunction · 0.85
listDirectoryMethod · 0.65
errorMethod · 0.45

Tested by

no test coverage detected