(raw)
| 171 | /** macOS ZIP junk: __MACOSX folder entries and AppleDouble (._*) resource forks */ |
| 172 | function isMacOsJunkZipEntry(entryPath) { |
| 173 | if (!entryPath) return false; |
| 174 | const normalized = entryPath.replace(/\\/g, '/'); |
| 175 | if (normalized.split('/').some((seg) => seg.toLowerCase() === '__macosx')) return true; |
| 176 | const base = path.basename(entryPath); |
| 177 | return base.startsWith('._'); |
| 178 | } |
| 179 | |
| 180 | function buildScanExtensionSet(scanExtensions) { |
| 181 | const set = new Set(); |
no outgoing calls
no test coverage detected