From bd2969daffb2b3079789ce9d3cf08fdc26c5e999 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Wed, 1 May 2024 10:03:03 +0530 Subject: [PATCH] Fix inverted condition --- desktop/src/main/services/upload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/src/main/services/upload.ts b/desktop/src/main/services/upload.ts index 795ce48aff..f7d0436c0b 100644 --- a/desktop/src/main/services/upload.ts +++ b/desktop/src/main/services/upload.ts @@ -14,7 +14,7 @@ export const listZipItems = async (zipPath: string): Promise => { for (const entry of Object.values(entries)) { const basename = path.basename(entry.name); // Ignore "hidden" files (files whose names begins with a dot). - if (entry.isFile && basename.startsWith(".")) { + if (entry.isFile && !basename.startsWith(".")) { // `entry.name` is the path within the zip. entryNames.push(entry.name); }