* @param {HTMLElement} container * @param {FileTreeOptions} options
(container, options = {})
| 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 |