// lists files only - who needs to list directories?! // lists in typical .zip fashion - dir1/dir2/bla.txt static L<S> listZipFile(File inZip) ctex { ZipFile zipFile = new ZipFile(inZip); try { ret listZipFile(zipFile); } finally { zipFile.close(); } } static L<S> listZipFile(ZipFile zipFile) ctex { new L<S> list; Enumeration entries = zipFile.entries(); while (entries.hasMoreElements()) { ZipEntry entry = (ZipEntry) entries.nextElement(); if (!entry.isDirectory()) list.add(entry.getName()); } ret list; } static L<S> listZipFile(S name) { if (isSnippetID(name)) ret listZipFile(loadLibrary(name)); ret listZipFile(getProgramFile(name)); }
Began life as a copy of #1001173
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment