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

Function findVFSForPath

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

Source from the content-addressed store, hash-verified

112}
113
114function findVFSForPath(filename) {
115 const normalized = resolve(filename);
116 for (let i = 0; i < activeVFSList.length; i++) {
117 const vfs = activeVFSList[i];
118 if (vfs.shouldHandle(normalized)) {
119 return { vfs, normalized };
120 }
121 }
122 return null;
123}
124
125// Sync read: check exists first, fall through to ENOENT for mounted VFS.
126function findVFSWith(filename, syscall, fn) {

Callers 9

vfsOpFunction · 0.85
vfsOpVoidFunction · 0.85
accessSyncFunction · 0.85
statfsSyncFunction · 0.85
createReadStreamFunction · 0.85
createWriteStreamFunction · 0.85
watchFunction · 0.85
statfsFunction · 0.85
promisesOpenFunction · 0.85

Calls 2

shouldHandleMethod · 0.80
resolveFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…