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 { export function ignoreEntry(filename: string): boolean {
const segments = filename.split("/");
return ( return (
filename.startsWith(".") || filename.endsWith("/") ||
filename.includes("/__MACOSX/") || segments.some(
filename.endsWith("/") (segment) => segment === "__MACOSX" || segment.startsWith("."),
)
); );
} }