This commit is contained in:
ifer47 2026-06-25 02:01:33 -07:00 committed by GitHub
commit 03116a716f
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("."),
)
);
}