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

Method followStatSync

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

Source from the content-addressed store, hash-verified

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) {

Callers 2

#isDirectorySyncMethod · 0.80
#addSubpatternsMethod · 0.80

Calls 3

getMethod · 0.65
statSyncFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected