ANEZipFile is a native extension to zip/unzip files on iOS. It uses a slightly modified version of SSZipArchive Obj-C and is able to perform several actions, such as listing the archive content. Some operations can be executed asynchronously for improved performance.
Some of its features:
- Unzip Files Asynchronously
- Unzip password protected files
- Unzip single file from zip to ByteArray ( Sync/Async )
- List Files inside zip
- Determine if zip is password protected
- Zip contents of a directory from FileSystem Asynchronously
- Zip group of Files from Filesystem Asynchronously
- Append files from FileSystem to zip ( Sync/Async )
- Append ByteArray Data to a file inside zip ( Sync/Async )
Sample
public function listDirToZip(folder : File) : Array public function extractFile(zipfile : File, fileName : String, password : String = "") : ByteArray public function extractFileAsync(zipfile : File, fileName : String, password : String = "") : void public function getZipContents(zipfile : File) : Array public function isPasswordProtected(zipfile : File) : Boolean public function unzip(zipfile : File, destination : File, overwrite : Boolean = false, password : String = "") : void public function zipDirectory(outputZip : File, sourceDirectory : File) : void public function zipFiles(outputZip : File, sourceFiles : Array, destinationFiles : Array = null) : void public function addFile(file : File, destination : String = "") : Boolean public function addFileAsync(file : File, destination : String = "") : void public function close() : Boolean public function open(zipfile : File, fileMode : uint = 0) : Boolean public function writeBytes(bytes : ByteArray, fileName : String) : Boolean public function writeBytesAsync(bytes : ByteArray, fileName : String) : void
Hi, is this ANE working on mobile application (ipad) ? With iOs 5 and iOs 6 ?
Hi! I had no change to test it, but I believe it is working with iPad. You can get further info from the author.