For a list of breaking changes, check here.
Babashka fs: file system utility library for Clojure
- #130 Unclear from
fs/glob
docs that it supports a:max-depth
option (@teodorlu) - #132: add
read-link
to resolve symbolic link, without target of link needing to exist
- #125 Allow
unzip
to take ajava.io.InputStream
- #122:
fs/copy-tree
: fix copying read-only directories with children (@sohalt) - #127: Inconsistent documentation for the
:posix-file-permissions
options (@teodorlu)
- #119:
fs/delete-tree
: add:force
flag to delete read-only directories/files. Set the flag to true infs/with-temp-dir
(@jlesquembre) - #102: add
gzip
andgunzip
functions - #113:
fs/glob
: enable:hidden
(when not already set) whenpattern
starts with dot (@eval). - #117: fix
fs/match
andfs/glob
not finding files in root-folder (@eval).
- #48: support input-stream in
fs/copy
- #91: add 1-arity to
xdg-*-home
to get subfolder of base directory (@eval) - #94: updates to
which
: add:paths
opt
, allow absolute paths forprogram
(@lread)
- #67: add
:root
and:path-fn
options tofs/zip
- #89: change default in
walk-file-tree
from throwing to continue-ing, which works better forglob
,match
. You can still throw by providing your ownvisit-file-failed
function.
- #81: do not process directories in
strip-ext
andsplit-ext
- Correct documentation for match/glob functions return value @thenonameguy
- Add
unixify
: returns path as string with Unix-style file separators (/
) on Windows systems.
- #73: add
write-bytes
andwrite-lines
- #77: add
update-file
- #65: Explicitly support
:win-exts
option onwhich
function (@lread) - clj-kondo#1782:
exists?
should never throw on illegal input path. - Remove
^:const
to not cache OS-specific constants, so AOT-ed code can be re-used in multiple OS-es.
- Add
cwd
-
Support glob patterns on Windows with forward slashes
-
#51: Update
which
function to more closely mimic unixwhich
:- do not identify directories as matches
- if the argument is a relative path (more than just a file/command name), then don't search path entries
- Add
windows?
predicate
- Compatibility improvements for
com.google.cloud/google-cloud-nio
: convertURI
toPath
directly without going throughURL
- Add
create-temp-file
- Add initial version of
zip
- Add
read-attributes*
without conversion into map - Run
create-dirs
for thedest
directory incopy-tree
to ensure it exists (@duzunov) - Document
list-dir
glob-or-accept
argument (@holyjak)
- Add
with-temp-dir
macro #37 (@hugoduncan) - Add
fs/home
andfs/expand-home
#12 #13 (@Kineolyan) - Improve
which
on Windows: take into account.com
,.exe
,.bat.
,.cmd
when searching for program
- Allow raw pattern to be passed to
fs/match
#32 unzip
: entry in dir can come before dir in zip entries #35
- Add
strip-ext
and changesplit-ext
andstrip-ext
to return full paths #29 (@corasaurus-hex) - Add
unzip
- Allow dir as dest in
move
#25
delete-tree
must not crash when tree doesn't exist (making it idempotent)- Add
modified-since
- Allow dir as dest in
copy
#24
- Create target dir in
copy-tree
- Add
create-link
andsplit-paths
(@eamonnsullivan) - Add
split-ext
andextension
(@kiramclean) - Add
regular-file?
(@tekacs) - Globbing is always recursive but should not be #18
- Fix globbing on Windows
- Fix Windows tests
Initial release.
None yet.