MCPcopy Index your code
hub / github.com/totaljs/framework / copyFile

Function copyFile

debug.js:103–107  ·  view source on GitHub ↗
(oldname, newname, callback)

Source from the content-addressed store, hash-verified

101 const PIDNAME = FILENAME.replace(/\.js$/, '.pid');
102
103 function copyFile(oldname, newname, callback) {
104 var writer = Fs.createWriteStream(newname);
105 callback && writer.on('finish', callback);
106 Fs.createReadStream(oldname).pipe(writer);
107 }
108
109 function app() {
110

Callers 1

refreshFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected