This commit is contained in:
ifer47 2026-08-10 00:53:54 -05:00 committed by GitHub
commit 042c90d65c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -41,9 +41,11 @@ export async function createZip(files: File[]): Promise<Uint8Array> {
}
export function ignoreEntry(filename: string): boolean {
const segments = filename.split("/");
return (
filename.startsWith(".") ||
filename.includes("/__MACOSX/") ||
filename.endsWith("/")
filename.endsWith("/") ||
segments.some(
(segment) => segment === "__MACOSX" || segment.startsWith("."),
)
);
}