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

Function copyfile

test/parallel/test-trace-events-fs-async.js:53–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53function copyfile() {
54 const fs = require('fs');
55 fs.writeFileSync('fs4.txt', '123', 'utf8');
56 fs.copyFile('fs4.txt', 'a.txt', () => {
57 fs.unlinkSync('fs4.txt');
58 fs.unlinkSync('a.txt');
59 });
60}
61
62function fchmod() {
63 const fs = require('fs');

Callers 1

copyfile.pyFile · 0.85

Calls 4

requireFunction · 0.50
writeFileSyncMethod · 0.45
copyFileMethod · 0.45
unlinkSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…