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

Function vfsOp

lib/internal/vfs/setup.js:146–153  ·  view source on GitHub ↗
(path, fn)

Source from the content-addressed store, hash-verified

144}
145
146function vfsOp(path, fn) {
147 const pathStr = toPathStr(path);
148 if (pathStr !== null) {
149 const r = findVFSForPath(pathStr);
150 if (r !== null) return fn(r.vfs, r.normalized);
151 }
152 return undefined;
153}
154
155function vfsOpVoid(path, fn) {
156 const pathStr = toPathStr(path);

Callers 15

createVfsHandlersFunction · 0.85
mkdtempSyncFunction · 0.85
readdirFunction · 0.85
statFunction · 0.85
readFileFunction · 0.85
realpathFunction · 0.85
accessFunction · 0.85
writeFileFunction · 0.85
appendFileFunction · 0.85
mkdirFunction · 0.85
renameFunction · 0.85
copyFileFunction · 0.85

Calls 3

toPathStrFunction · 0.85
findVFSForPathFunction · 0.85
fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…