is there a way using fs/glob to match files case-insensitive?
AFAICS this is not supported in bb/fs, as would need to lowercase the glob + the path when matching?
https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L321
you can also use a regex with
hum, any examples?
I'm using that on http://github.com/editor-code-assistant/eca to list the files user can use as context
so if one type foo it will search all files in the project which match that, so not sure regex is better than glob search
because I wanna search across multiple dir levels too seeking for foo in the filename or dir name
you can use fs/match with "regex:..."
user=> (fs/match "." "regex:.*/[cC]lj_kondo/.*core.clj" {:recursive true})
[#object[sun.nio.fs.UnixPath 0x2dfe9986 "parser/clj_kondo/impl/rewrite_clj/parser/core.clj"] #object[sun.nio.fs.UnixPath 0x93d07b3 "src/clj_kondo/impl/types/clojure/core.clj"] #object[sun.nio.fs.UnixPath 0x2e73b951 "src/clj_kondo/impl/core.clj"] #object[sun.nio.fs.UnixPath 0x3e1d673d "src/clj_kondo/core.clj"]]humm amazing! looks like it works for me, will test, thanks!