(path)
| 208 | this.#statsCache.set(path, val); |
| 209 | } |
| 210 | async readdir(path) { |
| 211 | const cached = this.#readdirCache.get(path); |
| 212 | if (cached) { |
| 213 | return cached; |
| 214 | } |
| 215 | const promise = PromisePrototypeThen(readdir(path, { __proto__: null, withFileTypes: true }), null, () => []); |
| 216 | this.#readdirCache.set(path, promise); |
| 217 | return promise; |
| 218 | } |
| 219 | readdirSync(path) { |
| 220 | const cached = this.#readdirCache.get(path); |
| 221 | if (cached) { |