Skip to content

Instantly share code, notes, and snippets.

@joekiller
Created March 9, 2017 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joekiller/aa8a5486957ca195177b40de6253f113 to your computer and use it in GitHub Desktop.
Save joekiller/aa8a5486957ca195177b40de6253f113 to your computer and use it in GitHub Desktop.
zip up a target directory
(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