dreamworkAPI
Ctrl K
GitHub
typeDocs / Zip / File

Zip.File

typesharedmenusource

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

NameTypeDescription
pathstringThe path of the file inside of the archive, e.g. docs/readme.txt, directories end with /.
sizeintegerThe uncompressed size of the file in bytes.
compressed_sizeintegerThe compressed size of the file in bytes.
checksumintegerThe CRC-32 checksum of the uncompressed content.
methodZip.MethodThe compression method, only 0 (stored), 8 (deflate) and 14 (LZMA) can be read.
flagsintegerThe general purpose flags, 1 means the file is encrypted.
timestampintegerThe Unix timestamp of the last modification in seconds.
commentstringThe file comment.
attributesintegerThe external file attributes, MS-DOS attributes or the Unix mode in the high 16 bits, depends on system.
systemintegerThe host system the file was created on, 0 is MS-DOS, 3 is Unix.
contentstring | nilThe uncompressed content, nil if it is still in the archive data.
compressedstring | nilThe compressed content, nil if it is still in the archive data.
offsetinteger | nilThe 1-based position of the compressed content in the archive data.
Generated from the dreamwork meta branch.