public native override unpackArchive(archivePath as String, destinationPath as String, mode as FileAccessMode = FileAccessMode.CREATE_NEW) as Void throws IOException
Extracts a ZIP archive into a directory.
CREATE_NEW rejects an existing destination. OVERWRITE atomically replaces it after every entry has been extracted and validated.
| Parameter | Description |
|---|---|
archivePath | ZIP file to extract. |
destinationPath | Destination directory. |
mode | Target directory creation policy. |
zip = ZipArchiver()
zip.unpackArchive("reports.zip", "/tmp/reports", FileAccessMode.OVERWRITE)