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

Function copyFile

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

Source from the content-addressed store, hash-verified

605 });
606 },
607 copyFile(src, dest, mode) {
608 return vfsOp(src, (vfs, n) => {
609 checkSameVFS(n, toPathStr(dest), 'copyfile', vfs);
610 return vfs.promises.copyFile(n, resolve(toPathStr(dest)), mode).then(() => true);
611 });
612 },
613 symlink(target, path, type) {
614 return vfsOp(path, (vfs, n) => vfs.promises.symlink(target, n, type).then(() => true));
615 },

Callers

nothing calls this directly

Calls 6

vfsOpFunction · 0.85
checkSameVFSFunction · 0.85
toPathStrFunction · 0.85
resolveFunction · 0.50
thenMethod · 0.45
copyFileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…