* Create a tree using constructor * @param {string} name * @param {string} root * @param {string} url * @param {boolean} isDirectory
(name, url, isDirectory, mime, size, modifiedDate)
| 470 | * @param {boolean} isDirectory |
| 471 | */ |
| 472 | constructor(name, url, isDirectory, mime, size, modifiedDate) { |
| 473 | this.#name = name; |
| 474 | this.#url = url; |
| 475 | this.mime = mime || null; |
| 476 | this.size = size || 0; |
| 477 | this.modifiedDate = normalizeModifiedDate(modifiedDate); |
| 478 | this.#children = isDirectory ? this.#childrenArray() : null; |
| 479 | this.#parent = null; |
| 480 | } |
| 481 | |
| 482 | #childrenArray() { |
| 483 | const ar = []; |
nothing calls this directly
no test coverage detected