(fileApi?: FileOperations)
| 36 | private fileApi?: FileOperations; |
| 37 | |
| 38 | constructor(fileApi?: FileOperations) { |
| 39 | this.nodes = new Map(); |
| 40 | this.pathIndex = new Map(); |
| 41 | this.rootId = 'root'; |
| 42 | this.listeners = new Set(); |
| 43 | this.fileApi = fileApi; |
| 44 | |
| 45 | // Initialize root node |
| 46 | this.initRoot(); |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Initialize root node |