I like that both its packing and unpacking functions work on either files or streams. I can imagine building a collection of output documents in memory, using this library to pack those documents into one in-memory zip archive, and streaming the result over HTTP without ever touching the file system.
On Mon, Aug 1, 2011 at 6:51 PM, Andreas Liljeqvist <bon...@gmail.com> wrote: > https://github.com/bonega/pacl > > From the readme: > > This library is just wrapping https://github.com/edmund-wagner/junrar and > sun's zip utilities. > It provides a more sane clojure interface for working with archives. > > You can do fun stuff like: > > (extract-files "https://github.com/bonega/pacl/zipball/master" > "thesourceofthislib") > > Just extracts all files from something that can be coerced into an > inputstream > > (with-open [a (open-archive "somefile.zip")] > (compress (filter #(str-contains (:filename %) ".jpg") (:entries > a)) "newarchive.zip" :method STORED) > > Takes all .jpg entries in a zip and creates another archive with no > compression > > (compress-files ["data/"] "filename.zip") > > compresses all files (or directories) to a new archive. > > "open-archive" and "compress" tries to handle anything that quacks... > > Hope someone finds it helpfull. > > Andreas Liljeqvist > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en