MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / constructor

Method constructor

src/components/fileTree/index.js:28–38  ·  view source on GitHub ↗

* @param {HTMLElement} container * @param {FileTreeOptions} options

(container, options = {})

Source from the content-addressed store, hash-verified

26 * @param {FileTreeOptions} options
27 */
28 constructor(container, options = {}) {
29 this.container = container;
30 this.container.classList.add("file-tree");
31
32 this.options = options;
33 this.virtualList = null;
34 this.entries = [];
35 this.isLoading = false;
36 this.childTrees = new Map(); // Track child trees for cleanup
37 this.depth = options._depth || 0; // Internal: nesting depth
38 }
39
40 /**
41 * Load and render entries for a directory

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected