Claus Lavendt Posted October 31, 2013 Posted October 31, 2013 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)
No_access Posted November 1, 2013 Posted November 1, 2013 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
clemhoff Posted November 4, 2013 Posted November 4, 2013 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 }
pixi Posted November 4, 2013 Posted November 4, 2013 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
Recommended Posts
This topic is 4049 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now