isn't this what glob is for btw? (https://candid82.github.io/joker/joker.filepath.html#glob)
or is glob non-recursive?
Ah, maybe that would be sufficient! file-seq
also returns info on each entry.
glob
does not appear to be recursive per se, though it does support e.g. **
and variations.
so the glob is recursive when you use ?
Hmm, doesn't seem to be.
(Neither is bash
.)
But it might be suitable if all one needs is a limited amount of depth and no information on the info (such as type) for each entry.
Why would you use if it isn't recursive? With recursive I mean, it descends into subdirs
That's what I would have thought, to!
Ah, in Bash, one must apparently set globstar
to get the behavior we're expecting:
https://unix.stackexchange.com/questions/49913/recursive-glob
Go stdlib doesn't have out-of-the-box support for it, based on this discussion: https://stackoverflow.com/questions/26809484/how-to-use-double-star-glob-in-go