(path)
| 149 | return promise; |
| 150 | } |
| 151 | statSync(path) { |
| 152 | const cached = this.#statsCache.get(path); |
| 153 | // Do not return a promise from a sync function. |
| 154 | if (cached && !(cached instanceof Promise)) { |
| 155 | return cached; |
| 156 | } |
| 157 | const val = getDirentSync(path); |
| 158 | this.#statsCache.set(path, val); |
| 159 | return val; |
| 160 | } |
| 161 | followStat(path) { |
| 162 | const cached = this.#followStatsCache.get(path); |
| 163 | if (cached) { |