extractZip

fun extractZip(zipFile: File, targetDir: File)

Estrae un archivio ZIP in una directory di destinazione con protezione Zip-Slip.

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.