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

Function vfsOpVoid

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

Source from the content-addressed store, hash-verified

153}
154
155function vfsOpVoid(path, fn) {
156 const pathStr = toPathStr(path);
157 if (pathStr !== null) {
158 const r = findVFSForPath(pathStr);
159 if (r !== null) { fn(r.vfs, r.normalized); return true; }
160 }
161 return undefined;
162}
163
164function checkSameVFS(srcPath, destPath, syscall, srcVfs) {
165 const destNormalized = resolve(destPath);

Callers 4

createVfsHandlersFunction · 0.85
renameSyncFunction · 0.85
copyFileSyncFunction · 0.85
linkSyncFunction · 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…