1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-12 01:40:53 +01:00

Delete unnecessary files in batch-upscayl command

This commit is contained in:
Nayam Amarshe 2024-01-16 14:17:09 +05:30
parent c2d64ebf57
commit 12c62f9b54

View File

@ -59,7 +59,11 @@ const batchUpscayl = async (event, payload: BatchUpscaylPayload) => {
// Delete .DS_Store files
fs.readdirSync(inputDir).forEach((file) => {
if (file === ".DS_Store") {
if (
file === ".DS_Store" ||
file.toLowerCase() === "desktop.ini" ||
file.startsWith(".")
) {
logit("🗑️ Deleting .DS_Store file");
fs.unlinkSync(inputDir + slash + file);
}