Skip to content

wsbu/clj-file-zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-file-zip

A simple Clojure library for dealing with zip files

Example

Assuming you're in a repl (lein repl)...

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")

About

A simple Clojure library for dealing with zip files

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors