MCPcopy Create free account
hub / github.com/nodejs/node / onDir

Function onDir

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

Source from the content-addressed store, hash-verified

133
134// TODO(@anonrig): Move this function to C++.
135function onDir(srcStat, destStat, src, dest, opts) {
136 if (!destStat) return copyDir(src, dest, opts, true, srcStat.mode);
137 return copyDir(src, dest, opts);
138}
139
140function copyDir(src, dest, opts, mkDir, srcMode) {
141 if (!opts.filter) {

Callers 1

getStatsFunction · 0.70

Calls 1

copyDirFunction · 0.70

Tested by

no test coverage detected