Name
zip.GetFileAttributes -- get file attributes
Synopsis
t = zip.GetFileAttributes(id, idx)
Function
This function returns attributes of the file at the index specified by idx inside the zip archive specified by id. zip.GetFileAttributes() returns a table with the following information about the file:

Size:
The size of the file in bytes or 0 for directories.

CompressedSize:
The compressed size of the file in bytes or 0 for directories.

CRC32:
The CRC32 checksum of the file or 0 for directories.

Compression:
The compression method used for the file. This will be one of the following special constants:

#ZIP_CM_DEFAULT:
Default compression. Currently the same as #ZIP_CM_DEFLATE.

#ZIP_CM_STORE:
Store the file uncompressed.

#ZIP_CM_BZIP2:
Compress the file using the bzip2 algorithm.

#ZIP_CM_DEFLATE:
Deflate the file with the zlib algorithm and default options.

Encryption:
The encryption method used for the file. This will be one of the following special constants:

#ZIP_EM_NONE:
No encryption.

#ZIP_EM_AES_128:
Winzip AES-128 encryption.

#ZIP_EM_AES_192:
Winzip AES-192 encryption.

#ZIP_EM_AES_256:
Winzip AES-256 encryption.

Time:
The datestamp for the file. This will be in the standard Hollywood date format of dd-mmm-yyyy hh:mm:ss.

Inputs
id
identifier of the zip archive to use
idx
index of the file to query
Results
t
table containing file attributes

Show TOC