const fs = require("fs"); //const list = ["bulge"]; //const list = ["yiff/gay"]; //const list = ["yiff/straight"]; const list = ["yiff/lesbian"]; for(const name of list) { const f = fs.readdirSync(`${__dirname}/../${name}`).slice(0, 1000); const k = name.replace(/yiff\//, "") if(!fs.existsSync(k)) fs.mkdirSync(k); f.map((v, i, {length:j}) => (fs.copyFileSync(`${__dirname}/../${name}/${v}`, `${k}/${v}`), console.log(i+1, j,name, v))); }