babashka / fs

File system utility library for Clojure
Eclipse Public License 1.0
174 stars 45 forks source link

support `java.nio.file.Files/write` #73

Closed mk closed 2 years ago

mk commented 2 years ago

I've been wanting to use babashka.fs for writing files using nio

Might supporting those be a sensible addition? Would also require an implementation ->standard-open-option analogous to ->copy-opts.

borkdude commented 2 years ago

Seems good to me

borkdude commented 2 years ago

write-bytes docs:

https://github.com/babashka/fs/blob/master/API.md#write-bytes

borkdude commented 2 years ago

Here is write-lines:

https://github.com/babashka/fs/blob/master/API.md#write-lines

Please review to check if this is something you were thinking of.