You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docstring for fs/glob does not mention :max-depth, making it hard to find out that fs/glob supports :max-depth.
$ bb -e '(doc fs/glob)'
-------------------------
babashka.fs/glob
([root pattern] [root pattern opts])
Given a file and glob pattern, returns matches as vector of
paths. Patterns containing `**` or `/` will cause a recursive walk over
path, unless overriden with :recursive. Similarly: :hidden will be enabled (when not set)
when `pattern` starts with a dot.
Glob interpretation is done using the rules described in
https://docs.oracle.com/javase/7/docs/api/java/nio/file/FileSystem.html#getPathMatcher(java.lang.String).
Options:
* `: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 `/`.
Examples:
`(fs/glob "." "**.clj")`
Proposed solution: mention :max-depth under "Options"
Proposed solution: refer to a different docstring to understand supported options
The text was updated successfully, but these errors were encountered:
Problem
The docstring for fs/glob does not mention
:max-depth
, making it hard to find out thatfs/glob
supports:max-depth
.Proposed solution: mention
:max-depth
under "Options"Proposed solution: refer to a different docstring to understand supported options
The text was updated successfully, but these errors were encountered: