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

Function stat

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

Source from the content-addressed store, hash-verified

507 return undefined;
508 },
509 stat(path, options) {
510 const promise = vfsOp(path, (vfs, n) => vfs.promises.stat(n, options));
511 if (promise !== undefined && options?.throwIfNoEntry === false) {
512 return promise.catch((err) => {
513 if (err?.code === 'ENOENT') return undefined;
514 throw err;
515 });
516 }
517 return promise;
518 },
519 readFile(path, options) {
520 if (typeof path === 'number') {
521 const vfd = getVirtualFd(path);

Callers

nothing calls this directly

Calls 2

vfsOpFunction · 0.85
statMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…