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

Function onFile

lib/internal/fs/cp/cp.js:240–243  ·  view source on GitHub ↗
(srcStat, destStat, src, dest, opts)

Source from the content-addressed store, hash-verified

238}
239
240function onFile(srcStat, destStat, src, dest, opts) {
241 if (!destStat) return _copyFile(srcStat, src, dest, opts);
242 return mayCopyFile(srcStat, src, dest, opts);
243}
244
245async function mayCopyFile(srcStat, src, dest, opts) {
246 if (opts.force) {

Callers 1

getStatsForCopyFunction · 0.70

Calls 2

_copyFileFunction · 0.85
mayCopyFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…