(delete-file f & [silently])(file arg)(file parent child)(file parent child & more)(make-parents f & more)(as-relative-path x)(copy input output & opts) -> nil | throwsInputStream, File, buffer, or string where string is interpreted as a file pathOutputStream, File, or string where string is interpreted as a file path:encoding : string
(slurp f & opts)string|File:encoding "" (an explicit empty string), returns raw buffer instead of string.string|Buffer(aslurp f & opts)string | File:encoding "utf8"
:encoding "" (an explicit empty string), returns raw buffer instead of string.Channel<[err data]>(spit f content & opts)string|Filestring | Buffer
(js/JSON.stringify js-data ...):append false
:encoding "utf8":mode 436:flags "w"nil or throws(aspit f content & opts)string| Filestring | Buffer:append false
:encoding "utf8"
:mode 436:flags "w"Channel<[?err]>FileOutputStream is strongly recommended.(Error? obj) -> boolean(Buffer? obj) -> boolean(input-stream? obj) -> boolean(output-stream? obj) -> booleanCan you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |