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

Method statSync

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

Source from the content-addressed store, hash-verified

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

Callers 15

defineDefaultCommandsFunction · 0.45
statSyncFunction · 0.45
globSyncMethod · 0.45
#addSubpatternMethod · 0.45
#addSubpatternsMethod · 0.45
#iterateSubpatternsMethod · 0.45
[kFSWatchStart]Method · 0.45
_cli.jsFile · 0.45
mainFunction · 0.45
runTestFunction · 0.45
test-make-doc.mjsFile · 0.45

Calls 3

getDirentSyncFunction · 0.85
getMethod · 0.65
setMethod · 0.45

Tested by 4

testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36