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

Function findVFSForExists

lib/internal/vfs/setup.js:103–112  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

101}
102
103function findVFSForExists(filename) {
104 const normalized = resolve(filename);
105 for (let i = 0; i < activeVFSList.length; i++) {
106 const vfs = activeVFSList[i];
107 if (vfs.shouldHandle(normalized)) {
108 return { vfs, exists: vfs.existsSync(normalized) };
109 }
110 }
111 return null;
112}
113
114function findVFSForPath(filename) {
115 const normalized = resolve(filename);

Callers 1

existsSyncFunction · 0.85

Calls 3

shouldHandleMethod · 0.80
resolveFunction · 0.50
existsSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…