MCPcopy Index your code
hub / github.com/nodejs/node / followStat

Method followStat

lib/internal/fs/glob.js:161–169  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

159 return val;
160 }
161 followStat(path) {
162 const cached = this.#followStatsCache.get(path);
163 if (cached) {
164 return cached;
165 }
166 const promise = PromisePrototypeThen(stat(path), null, () => null);
167 this.#followStatsCache.set(path, promise);
168 return promise;
169 }
170 followStatSync(path) {
171 const cached = this.#followStatsCache.get(path);
172 if (cached && !(cached instanceof Promise)) {

Callers 2

#isDirectoryMethod · 0.80
#iterateSubpatternsMethod · 0.80

Calls 3

statFunction · 0.70
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected