Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4049 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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)

Posted

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

Posted

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
}

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.