0.3.0
This is a breaking feature release that improves the ike.cljj.file
APIs.
Enhancements
- Clojure's built in IO methods like
slurp
/spit
/reader
now work withPath
instances (ifike.cljj.file
is required). - BREAKING
make-dir
no longer provides a boolean to allow parent directories to be created make-dirs
added to create dir and its parent-directoriesmake-parents
added to create only parents of a pathread-link
added to allow seeing target of link- BREAKING
copy
anddelete
now use named options (:recurse true
) instead of a boolean for recursion - BREAKING
read-lines
now returns a list instead of a stream (to be more consistent with the otherread-
methods which also fully read the file lines
added which returns a stream (same as the oldread-lines
read-str
andwrite-str
added to support string contents of the entire fileread-
,write-
, andlines
functions now support named arguments for file encoding (:encode "ASCII"
) and appending to a file instead of truncating (:append true
). These still default to UTF-8 and truncating.
Fixes
None
Compatibility
Clojure tested on 1.9.0-alpha17