[babashka/pod-registry#4] Fix issue with unzipping file
This commit is contained in:
parent
280f99888c
commit
65f1d280af
1 changed files with 3 additions and 1 deletions
|
|
@ -55,11 +55,13 @@
|
|||
(let [entry-name (.getName entry)
|
||||
new-path (.resolve output-path entry-name)]
|
||||
(if (.isDirectory entry)
|
||||
(Files/createDirectories new-path (into-array []))
|
||||
(Files/createDirectories new-path ^"[Ljava.nio.file.attribute.FileAttribute;"
|
||||
(into-array java.nio.file.attribute.FileAttribute []))
|
||||
(Files/copy ^java.io.InputStream zis
|
||||
new-path
|
||||
^"[Ljava.nio.file.CopyOption;"
|
||||
(into-array
|
||||
java.nio.file.CopyOption
|
||||
[java.nio.file.StandardCopyOption/REPLACE_EXISTING]))))
|
||||
(recur)))))))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue