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

Function copyFileSync

lib/internal/vfs/setup.js:306–311  ·  view source on GitHub ↗
(src, dest, mode)

Source from the content-addressed store, hash-verified

304 });
305 },
306 copyFileSync(src, dest, mode) {
307 return vfsOpVoid(src, (vfs, n) => {
308 checkSameVFS(n, toPathStr(dest), 'copyfile', vfs);
309 vfs.copyFileSync(n, resolve(toPathStr(dest)), mode);
310 });
311 },
312 symlinkSync: (target, path, type) =>
313 vfsOpVoid(path, (vfs, n) => vfs.symlinkSync(target, n, type)),
314 chmodSync: (path, mode) => vfsOpVoid(path, (vfs, n) => vfs.chmodSync(n, mode)),

Callers 2

cleanupMethod · 0.50
copyFileFunction · 0.50

Calls 5

vfsOpVoidFunction · 0.85
checkSameVFSFunction · 0.85
toPathStrFunction · 0.85
resolveFunction · 0.50
copyFileSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…