Zip.File
The file inside of the zip archive.
content is nil for files of a parsed archive, the compressed data stays in the archive string at offset, compressed is the compressed data of added files.
Fields
| Name | Type | Description |
|---|---|---|
path | string | The path of the file inside of the archive, e.g. docs/readme.txt, directories end with /. |
size | integer | The uncompressed size of the file in bytes. |
compressed_size | integer | The compressed size of the file in bytes. |
checksum | integer | The CRC-32 checksum of the uncompressed content. |
method | Zip.Method | The compression method, only 0 (stored), 8 (deflate) and 14 (LZMA) can be read. |
flags | integer | The general purpose flags, 1 means the file is encrypted. |
timestamp | integer | The Unix timestamp of the last modification in seconds. |
comment | string | The file comment. |
attributes | integer | The external file attributes, MS-DOS attributes or the Unix mode in the high 16 bits, depends on system. |
system | integer | The host system the file was created on, 0 is MS-DOS, 3 is Unix. |
content | string | nil | The uncompressed content, nil if it is still in the archive data. |
compressed | string | nil | The compressed content, nil if it is still in the archive data. |
offset | integer | nil | The 1-based position of the compressed content in the archive data. |