extractFolder

fun extractFolder(zipFile: FileHandle, unzipDestination: FileHandle)

Extract one Zip file recursively (nested Zip files are extracted in turn).

The source Zip is not deleted, but successfully extracted nested ones are.

Warning: Extracting into a non-empty destination folder will merge contents. Existing files also included in the archive will be partially overwritten, when the new data is shorter than the old you will get mixed contents!

Parameters

zipFile

The Zip file to extract

unzipDestination

The folder to extract into, preferably empty (not enforced).

Sources

jvm source
Link copied to clipboard