zip_list¶
zip_list returns information about a given zip archive.
Note
This is an obsolete function. Use p7z_list instead.
- ret = zip_list(ssZipfile)
- ret = zip_list(ssZipfile, svOptions)
- ret = zip_list(ssZipfile, svOptions, svMatch)
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
ssZipfile is the complete Zip file name.
- svOptions
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
svMatch is a match string for the file names in the archive file, which may contain wildcard characters (
"*"
and"?"
).
Example
smFilenames = zip_list("c:/test.zip", "longlisting", "*.exe")
History
Version |
Description |
---|---|
5.0.0 |
New |
See also
id-213908