(file)
| 105 | } |
| 106 | |
| 107 | #unwatchFiles(file) { |
| 108 | this.#symbolicFiles.delete(file); |
| 109 | |
| 110 | const childPrefix = file + pathSep; |
| 111 | for (const filename of this.#files.keys()) { |
| 112 | if (filename === file || |
| 113 | StringPrototypeStartsWith(filename, childPrefix)) { |
| 114 | this.#files.delete(filename); |
| 115 | this.#watchers.get(filename)?.close(); |
| 116 | this.#watchers.delete(filename); |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | #watchFolder(folder) { |
| 122 | const { readdirSync } = lazyLoadFsSync(); |
no test coverage detected