I am working on a angular app. I have two images namely X.png and Y.png. I want to copy these images from my assets folder to a folder in C drive c:\users\images. The destination path also I am recieving as variable. How can I do that ?I was trying to write a function something like this in node.
function moveIMage(ImageStyle, destination) { const fs = require('fs'); // destination will be created or overwritten by default. fs.copyFile('src\assests\images\' + ImageStyle, 'destination'); } value of Image style can be X or Y and on the basis of this I want to pick image and move it to destination. Above code is not working. how can I do that?