π Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.
TypeScript aielectronesrgangigapixelgigapixel-imagesimageimage-upscalingtopazupscaleupscalerimageupscayl
Delete unnecessary files in batch-upscayl command
Nayam Amarshe12c62f9b54e3
diff --git a/electron/commands/batch-upscayl.ts b/electron/commands/batch-upscayl.tsindex 970d506..f2f8daf 100644--- a/electron/commands/batch-upscayl.ts+++ b/electron/commands/batch-upscayl.ts@@ -59,7 +59,11 @@ const batchUpscayl = async (event, payload: BatchUpscaylPayload) => {// Delete .DS_Store filesfs.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);}