(path)
| 51 | }; |
| 52 | |
| 53 | findNode(path) { |
| 54 | if (path === null || path === undefined || path.length === 0 || path == '/browser') { |
| 55 | return this.tempTree; |
| 56 | } |
| 57 | return findInTree(this.tempTree, path); |
| 58 | } |
| 59 | |
| 60 | public addNode = (_parent: string, _path: string, _data: []) => new Promise((res) => { |
| 61 | _data.type = _data.inode ? FileType.Directory : FileType.File; |
no test coverage detected