Answers for "node copy file into folder"

4

nodejs copy file

const fs = require('fs');

// File destination.txt will be created or overwritten by default.
fs.copyFile('source.txt', 'destination.txt', (err) => {
  if (err) throw err;
  console.log('source.txt was copied to destination.txt');
});
Posted by: Guest on January-13-2021
-1

copy folder in nodejs

copydir.sync(from, to[, options]);
Posted by: Guest on June-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language