YiffyImages/furry/tmp/get.js
2024-06-29 05:27:08 +00:00

12 lines
444 B
JavaScript

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)));
}