MCPcopy Create free account
hub / github.com/nodejs/node / #nextRealpaths

Method #nextRealpaths

lib/internal/fs/glob.js:439–450  ·  view source on GitHub ↗
(path, isDirectory, pattern)

Source from the content-addressed store, hash-verified

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;

Callers 1

#iterateSubpatternsMethod · 0.95

Calls 3

cloneSetFunction · 0.85
addMethod · 0.65
realpathMethod · 0.45

Tested by

no test coverage detected