// lists files only - who needs to list directories?! // lists in typical .zip fashion - dir1/dir2/bla.txt static L<ZipEntry> listZipEntries(File inZip) ctex { if (inZip == null) null; temp ZipFile zipFile = new ZipFile(inZip); ret listZipEntries(zipFile); } static L<ZipEntry> listZipEntries(ZipFile zipFile) ctex { new L<ZipEntry> list; Enumeration entries = zipFile.entries(); while (entries.hasMoreElements()) { ZipEntry entry = cast entries.nextElement(); if (!entry.isDirectory()) list.add(entry); } ret list; }
Began life as a copy of #1002029
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022702 |
Snippet name: | listZipEntries |
Eternal ID of this version: | #1022702/3 |
Text MD5: | 64331f5378a607fea8b49d39dafe96b1 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-30 11:54:39 |
Source code size: | 570 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 322 / 371 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1025252 - firstZipEntry #1030578 - listZipAsNameToSizeMap |