Skip to content

πŸ†™ Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.

Delete unnecessary files in batch-upscayl command

Nayam Amarshe12c62f9b54e3
diff --git a/electron/commands/batch-upscayl.ts b/electron/commands/batch-upscayl.ts
index 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 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);
}