Created
March 9, 2017 05:21
-
-
Save joekiller/aa8a5486957ca195177b40de6253f113 to your computer and use it in GitHub Desktop.
zip up a target directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(with-open [zip (ZipOutputStream. (io/output-stream "target/lambda.zip"))] | |
(doseq [f (file-seq (io/file *compile-path*)) :when (.isFile f)] | |
(.putNextEntry zip (ZipEntry. (subs (.getPath f) (+ 1 (count *compile-path*))))) | |
(io/copy f zip) | |
(.closeEntry zip))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment