Skip to content

A simple Clojure library for dealing with zip files

License

Notifications You must be signed in to change notification settings

komcrad/clj-file-zip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-file-zip

A simple Clojure library for dealing with zip files

Usage

Clojars Project
CircleCI

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

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%