extractZip

fun extractZip(zipFile: File, targetDir: File)

Extrahiert ein ZIP-Archiv in ein Zielverzeichnis mit Zip-Slip-Schutz.

Parameters

zipFile

The ZIP archive to extract.

targetDir

The directory to extract into (created if it does not exist).

Throws

if any entry escapes the target directory.