static void zip2zip_exceptManifest(File inZip, ZipOutputStream outZip) ctex { ZipFile zipFile = new ZipFile(inZip); try { Enumeration entries = zipFile.entries(); while (entries.hasMoreElements()) { ZipEntry entry = (ZipEntry) entries.nextElement(); if (entry.isDirectory()) continue; S name = entry.getName(); //if (eq(name, "META-INF/MANIFEST.MF")) continue; if (startsWith(name, "META-INF/")) continue; temp smartZipCompressionLevel(outZip, name); outZip.putNextEntry(new ZipEntry(name)); copyStreamAndCloseInput(zipFile.getInputStream(entry), outZip); } } finally { zipFile.close(); } }
Began life as a copy of #1001173
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011503 |
Snippet name: | zip2zip_exceptManifest - excludes all META-INF/ |
Eternal ID of this version: | #1011503/6 |
Text MD5: | 5eb4cb78a7ccd462679fda9afd33d195 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-31 21:35:47 |
Source code size: | 687 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 560 / 606 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014514 - manifestFromZipSnippet #1019060 - zip2zip_exceptManifest2 - collects files written |