From fe2a8f0885c69e41d61957bcfdd55293749828c4 Mon Sep 17 00:00:00 2001 From: Teodor Heggelund Date: Fri, 7 Jun 2024 17:34:04 +0200 Subject: [PATCH 1/2] Add :max-deth description to babashka.fs/glob --- src/babashka/fs.cljc | 1 + 1 file changed, 1 insertion(+) 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\")`" From efa19e88b2625f9ce95cfc979d633f521bf7ec1d Mon Sep 17 00:00:00 2001 From: Teodor Heggelund Date: Fri, 7 Jun 2024 17:36:28 +0200 Subject: [PATCH 2/2] Add changelog entry --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) 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`