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

Function checkSameVFS

lib/internal/vfs/setup.js:164–176  ·  view source on GitHub ↗
(srcPath, destPath, syscall, srcVfs)

Source from the content-addressed store, hash-verified

162}
163
164function checkSameVFS(srcPath, destPath, syscall, srcVfs) {
165 const destNormalized = resolve(destPath);
166 for (let i = 0; i < activeVFSList.length; i++) {
167 const vfs = activeVFSList[i];
168 if (vfs.shouldHandle(destNormalized)) {
169 if (vfs !== srcVfs) {
170 throw createEXDEV(syscall, srcPath);
171 }
172 return;
173 }
174 }
175 throw createEXDEV(syscall, srcPath);
176}
177
178function createVfsHandlers() {
179 return {

Callers 6

renameSyncFunction · 0.85
copyFileSyncFunction · 0.85
linkSyncFunction · 0.85
renameFunction · 0.85
copyFileFunction · 0.85
linkFunction · 0.85

Calls 3

createEXDEVFunction · 0.85
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…