nodejs copy file
const fs = require('fs');
const sourceFilePath = 'path/to/source/file.txt';
const destinationFilePath = 'path/to/destination/file.txt';
fs.copyFile(sourceFilePath, destinationFilePath, (err) => {
if (err) {
console.error('Error copying file:', err);
} else {
console.log('File copied successfully.');
}
});