October 31, 201312 yr I am looking for a function to list the content of a zip file. Does anyone have anything to share ? (I want a list of files and folders within the zip file. Much like the List dir content recursively function)
November 1, 201312 yr In windows you can send event to winzip command line and to record contents to a text file then load that from winzips site, the usage would be: wzzip -vb filename.zip >logfile.txt In OS X their should be something similar
November 4, 201312 yr Hej, zip_ArchiveContents ( fm_OsPathToArchive ) import java.util.zip.ZipException import java.util.zip.ZipFile try { def file = new ZipFile(fm_OsPathToArchive) fList = [] file.entries().each { it -> fList << it.name } return fList } catch (ZipException zex) { return zex.message } or import java.util.zip.ZipException import java.util.zip.ZipFile try { def file = new ZipFile(fm_OsPathToArchive) return file.entries().toList() } catch (ZipException zex) { return zex.message }
November 4, 201312 yr hi claus, zip -sf /path/to/your/zip/file.zip will list the whole content on os x. for more info type "man zip" into a cli. egbert
Create an account or sign in to comment