(path)
| 191 | return promise; |
| 192 | } |
| 193 | realpathSync(path) { |
| 194 | const cached = this.#realpathCache.get(path); |
| 195 | if (cached && !(cached instanceof Promise)) { |
| 196 | return cached; |
| 197 | } |
| 198 | let val; |
| 199 | try { |
| 200 | val = realpathSync(path); |
| 201 | } catch { |
| 202 | val = null; |
| 203 | } |
| 204 | this.#realpathCache.set(path, val); |
| 205 | return val; |
| 206 | } |
| 207 | addToStatCache(path, val) { |
| 208 | this.#statsCache.set(path, val); |
| 209 | } |