MCPcopy Index your code
hub / github.com/ptmt/react-native-macos / copy

Function copy

local-cli/bundle/saveAssets.js:71–81  ·  view source on GitHub ↗
(src, dest, callback)

Source from the content-addressed store, hash-verified

69}
70
71function copy(src, dest, callback) {
72 const destDir = path.dirname(dest);
73 mkdirp(destDir, err => {
74 if (err) {
75 return callback(err);
76 }
77 fs.createReadStream(src)
78 .pipe(fs.createWriteStream(dest))
79 .on('finish', callback);
80 });
81}
82
83module.exports = saveAssets;

Callers 1

copyNextFunction · 0.85

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…