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

Function copyFile

lib/internal/fs/cp/cp-sync.js:100–104  ·  view source on GitHub ↗
(srcStat, src, dest, opts)

Source from the content-addressed store, hash-verified

98}
99
100function copyFile(srcStat, src, dest, opts) {
101 copyFileSync(src, dest, opts.mode);
102 if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
103 return setDestMode(dest, srcStat.mode);
104}
105
106function handleTimestamps(srcMode, src, dest) {
107 // Make sure the file is writable before setting the timestamp

Callers 2

_copyFileFunction · 0.70
onFileFunction · 0.70

Calls 3

handleTimestampsFunction · 0.85
setDestModeFunction · 0.70
copyFileSyncFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…