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

Function mkDirAndCopy

lib/internal/fs/cp/cp.js:317–321  ·  view source on GitHub ↗
(srcMode, src, dest, opts)

Source from the content-addressed store, hash-verified

315}
316
317async function mkDirAndCopy(srcMode, src, dest, opts) {
318 await mkdir(dest);
319 await copyDir(src, dest, opts);
320 return setDestMode(dest, srcMode);
321}
322
323async function copyDir(src, dest, opts) {
324 const dir = await opendir(src);

Callers 1

onDirFunction · 0.85

Calls 3

copyDirFunction · 0.70
setDestModeFunction · 0.70
mkdirFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…