This commit is contained in:
Michiel Borkent 2020-11-15 17:10:09 +01:00
parent 333c0b4d60
commit 99a747e951

View file

@ -15,11 +15,11 @@
_ (.setConnectTimeout conn 2000)
_ (.setReadTimeout conn 2000)]
(.connect conn)
(binding [*out* (io/writer System/out)]
(binding [*out* (io/writer System/err)]
(prn :before))
(with-open [is (.getInputStream conn)]
(io/copy is zip-file))
(binding [*out* (io/writer System/out)]
(binding [*out* (io/writer System/err)]
(prn :after))
(let [bb-file (io/file tmp-dir "bb-extracted")
fs (java.nio.file.FileSystems/newFileSystem (.toPath zip-file) nil)