Skip to main content

unzip

function

babashka.fs/unzip

(unzip [zip-file] [zip-file dest] [zip-file dest {:keys [replace-existing extract-fn]}])
Unzips `zip-file` to `dest` directory (default `"."`). Options: * `:replace-existing` - `true` / `false`: overwrite existing files * `:extract-fn` - function that decides if the current ZipEntry should be extracted. The function is only called for the file case (not directories) with a map with entries: * `:entry` and the current ZipEntry * `:name` and the name of the ZipEntry (result of calling `getName`) Extraction only occurs if a truthy value is returned (i.e. not nil/false).

No examples yet. Be the first to add one!