Skip to content

Unzip

ZIP extraction class

Members

Constructors

Methods


Unzip

Constructor

Description

Constructor


open

Method

Arguments

Arguments Default Description
filename   File name.
force_utf8 0 0: detect the file name encoding from the first file, 1: force UTF-8.

Description

Opens a ZIP archive for extraction


list

Method

Return value

List of files (an array of file information). Each entry is a dictionary containing the following:

filename
Path within the archive
uncompressed_size
Uncompressed size
compressed_size
Compressed size
crypted
Whether the file is encrypted
deflated
Whether the file is compressed
deflateLevel
Compression level
crc
CRC of the file

Description

Gets information on the files contained in the ZIP archive


extract

Method

Arguments

Arguments Default Description
srcname   Source file (path within the archive).
destfile   Destination file (Kirikiri storage name).
password void Password.

Return value

true if the file was extracted.

Description

Extracts a file


close

Method

Description

Closes the ZIP archive