A simple Clojure library for dealing with zip files
Import the core namespace:
(use 'clj-file-zip.core)
Zip a single file:
(zip "/tmp/foo" "/tmp/foo.zip")
Zip a folder recursively:
(zip "/tmp/folder" "/tmp/folder.zip")
Unzip an archive to destination folder:
(unzip "/tmp/folder.zip" "/tmp/")
Create an archive and add files with no hierarchy
(zip-files ["filename1" "filename2"] "/tmp/archive.zip")