(path, isDirectory, pattern)
| 437 | return realpaths; |
| 438 | } |
| 439 | async #nextRealpaths(path, isDirectory, pattern) { |
| 440 | if (!this.#followSymlinks || !isDirectory) { |
| 441 | return pattern.realpaths; |
| 442 | } |
| 443 | const real = await this.#cache.realpath(path); |
| 444 | if (real === null) { |
| 445 | return pattern.realpaths; |
| 446 | } |
| 447 | const realpaths = cloneSet(pattern.realpaths); |
| 448 | realpaths.add(real); |
| 449 | return realpaths; |
| 450 | } |
| 451 | async #isCyclic(path, isDirectory, pattern) { |
| 452 | if (!this.#followSymlinks || !isDirectory) { |
| 453 | return false; |
no test coverage detected