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

Function lstat

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

Source from the content-addressed store, hash-verified

495 return promise;
496 },
497 lstat(path, options) {
498 const pathStr = toPathStr(path);
499 if (pathStr === null) return undefined;
500 const normalized = resolve(pathStr);
501 for (let i = 0; i < activeVFSList.length; i++) {
502 const vfs = activeVFSList[i];
503 if (vfs.shouldHandle(normalized)) {
504 return vfs.promises.lstat(normalized, options);
505 }
506 }
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) {

Callers

nothing calls this directly

Calls 4

toPathStrFunction · 0.85
shouldHandleMethod · 0.80
resolveFunction · 0.50
lstatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…