void (File zipFile, File unzipDir) { new ZipFile(zipFile).withCloseable { zip -> def outputDirectoryCanonicalPath = unzipDir.canonicalPath for (entry in zip.entries()) { unzipEntryTo(unzipDir, outputDirectoryCanonicalPath, zip, entry) } } }