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

Function statSync

lib/internal/vfs/setup.js:232–239  ·  view source on GitHub ↗
(path, options)

Source from the content-addressed store, hash-verified

230 return undefined;
231 },
232 statSync(path, options) {
233 try {
234 return vfsRead(path, 'stat', (vfs, n) => vfs.statSync(n, options));
235 } catch (err) {
236 if (err?.code === 'ENOENT' && options?.throwIfNoEntry === false) return undefined;
237 throw err;
238 }
239 },
240 realpathSync(path, options) {
241 const result = vfsRead(path, 'realpath', (vfs, n) => vfs.realpathSync(n));
242 if (result !== undefined && options?.encoding === 'buffer') {

Callers 4

followStatSyncMethod · 0.50
#watchFileMethod · 0.50
setDestTimestampsFunction · 0.50
onLinkFunction · 0.50

Calls 2

vfsReadFunction · 0.85
statSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…