[repo] desacoplamento e maior coesão
This commit is contained in:
synt-xerror
2026-03-13 11:30:34 -03:00
parent fe95e77a68
commit 88a7abba5d
19 changed files with 439 additions and 393 deletions

9
src/utils/file.js Normal file
View File

@@ -0,0 +1,9 @@
import fs from "fs";
import path from "path";
export function emptyFolder(folder) {
fs.readdirSync(folder).forEach(file => {
const filePath = path.join(folder, file);
if (fs.lstatSync(filePath).isFile()) fs.unlinkSync(filePath);
});
}