public unpackArchive(archivePath as String, destinationPath as Path, mode as FileAccessMode = FileAccessMode.CREATE_NEW) as Void throws IOException:
Unpacks an archive into a destination represented by a Path. This overload preserves the selected archiver's validation and creation policy; the destination need not exist yet.
| Parameter | Description |
|---|---|
archivePath | Archive file to unpack. |
destinationPath | Destination directory path. |
mode | Target creation policy. |
archiver = Archiver.getInstance(ArchiveFormat.ZIP)
destination = Path.tempDir.resolve("reports")
archiver.unpackArchive("reports.zip", destination, FileAccessMode.OVERWRITE)