Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy fn does not work with InputStream as source - write from http req -> disk with minimal no overhead #48

Closed
ieugen opened this issue Mar 8, 2022 · 1 comment

Comments

@ieugen
Copy link

ieugen commented Mar 8, 2022

Java Files allows for copying an InputStream (such as one from an http request) to disk via Files/copy .
babashka.fs/copy does not allow this.

https://docs.oracle.com/javase/8/docs/api/java/nio/file/Files.html#copy-java.io.InputStream-java.nio.file.Path-java.nio.file.CopyOption...-

@ieugen
Copy link
Author

ieugen commented Mar 8, 2022

From Michiel: As an alternative you can use clojure.java.io/copy for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant