Fix inverted condition

This commit is contained in:
Manav Rathi
2024-05-01 10:03:03 +05:30
parent 633aee9dfd
commit bd2969daff

View File

@@ -14,7 +14,7 @@ export const listZipItems = async (zipPath: string): Promise<ZipItem[]> => {
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);
}