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

Method stat

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

Source from the content-addressed store, hash-verified

140 #realpathCache = new SafeMap();
141
142 stat(path) {
143 const cached = this.#statsCache.get(path);
144 if (cached) {
145 return cached;
146 }
147 const promise = getDirent(path);
148 this.#statsCache.set(path, promise);
149 return promise;
150 }
151 statSync(path) {
152 const cached = this.#statsCache.get(path);
153 // Do not return a promise from a sync function.

Callers 15

FilesAreEqualFunction · 0.45
print_sizeFunction · 0.45
statFunction · 0.45
statSyncFunction · 0.45
realpathSyncFunction · 0.45
gotStatFunction · 0.45
#iterateSubpatternsMethod · 0.45
runFunction · 0.45
runTestFunction · 0.45

Calls 3

getDirentFunction · 0.70
getMethod · 0.65
setMethod · 0.45

Tested by 1

create_wrapperFunction · 0.36