zip_list returns information about a given zip archive.
Return Value
ret is either an error object (see error_create) or a string matrix with file information.The string matrix contains 1 or 8 columns depending on the parameter svOptions.
| name | file name |
| size | file size in bytes (unpacked) |
| csize | file size in bytes (packed) |
| date | date |
| time | time |
| method | compression method |
| crc-32 | check sum |
| encrypt | encrypted: “P”, not encrypted: “-“ |
Parameters
ssZipfile is the complete Zip file name.
svOptions is a string with one of the folloing values:
| Value | Description |
|---|---|
| “shortlisting”, “short”, “s” | List only file names. |
| “longlisting”, “long”, “l” | List file names and other information (see return value). |
svMatch is a match string for the file names in the archive file, which may contain wildcard characters ("*" and "?").
Example
smFilnames = zip_list("c:/test.zip", "longlisting", "*.exe")
History
| Version | Description |
|---|---|
| 5.0.0 | New |
See also
id-213908