Skip to content

0.3.0

Compare
Choose a tag to compare
@ajoberstar ajoberstar released this 29 May 18:37
· 24 commits to main since this release

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 with Path instances (if ike.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-directories
  • make-parents added to create only parents of a path
  • read-link added to allow seeing target of link
  • BREAKING copy and delete 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 other read- methods which also fully read the file
  • lines added which returns a stream (same as the old read-lines
  • read-str and write-str added to support string contents of the entire file
  • read-, write- , and lines 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