Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fs = require('fs');
- const fse = require('fs-extra');
- const path = require('path')
- let ImagesNames = fs.readFileSync('PhotoList.txt').toString().split("\n");
- for (let i = 0; i < ImagesNames.length; i++){
- fse.copySync(path.resolve(__dirname,'./Photos/'+ImagesNames[i]), './Photos/fltr/'+ImagesNames[i]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement