(path)
| 168 | return promise; |
| 169 | } |
| 170 | followStatSync(path) { |
| 171 | const cached = this.#followStatsCache.get(path); |
| 172 | if (cached && !(cached instanceof Promise)) { |
| 173 | return cached; |
| 174 | } |
| 175 | let val; |
| 176 | try { |
| 177 | val = statSync(path); |
| 178 | } catch { |
| 179 | val = null; |
| 180 | } |
| 181 | this.#followStatsCache.set(path, val); |
| 182 | return val; |
| 183 | } |
| 184 | realpath(path) { |
| 185 | const cached = this.#realpathCache.get(path); |
| 186 | if (cached) { |
no test coverage detected