ZipArchive - ZIP File Archive
The class provides frunctions for managing zip file archives, i.e. extracting, adding or removing files or directories in a zip archive. The achive provides several file...() functions in order to extract or manipulate files within the archive. In order to update file content, one may call fileWrite() . File content is passed and retined in binary buffers ( Binary ).
The class is based on the open source libzip, a library for manipulating zip archives. (see http://www.nih.at/libzip/libzip.html ). When libzip is not available while installing (compiling) ODABA, function calls will throw an exception.
Attributes
- file - Internal zip archive object
Function Groups
Functions
- ZipArchive - Constructor for ZipArchive
- accessMode - Access mode
- assign - Assign zip archive
- close - Close zip file archive
- fileCount - Get number of files in zip archive
- fileExist - Does file exist in the archive
- filePath - Get file path at positon
- fileRead - Get zip file content as binary
- fileSize - Get size of file in zip archive
- fileWrite - Load file from binary to archive
- isOpened - Is zip archive opened
- open - Open zip archive
- path - Path to zip archive
- ~ZipArchive - Destructor