diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ceb3cc..ca2341f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ For a list of breaking changes, check [here](#breaking-changes). Babashka [fs](https://github.com/babashka/fs): file system utility library for Clojure +## Unreleased + +- [#130](https://github.com/babashka/fs/issues/130) Unclear from `fs/glob`docs that it supports a `:max-depth` option ([@teodorlu](https://github.com/teodorlu)) + ## v0.5.21 (2024-05-17) - [#125](https://github.com/babashka/fs/issues/125) Allow `unzip` to take a `java.io.InputStream` diff --git a/src/babashka/fs.cljc b/src/babashka/fs.cljc index eedd241..399d589 100644 --- a/src/babashka/fs.cljc +++ b/src/babashka/fs.cljc @@ -336,6 +336,7 @@ * `:hidden` - match hidden paths. Implied when `pattern` starts with a dot. Note: on Windows files starting with a dot are not hidden, unless their hidden attribute is set. * `:follow-links` - follow symlinks. * `:recursive` - force recursive search. Implied when `pattern` contains `**` or `/`. + * `:max-depth` - max depth to descend into directory structure. Examples: `(fs/glob \".\" \"**.clj\")`"