Fork me on GitHub
#joker
<
2020-12-27
>
jcburley23:12:07

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.

borkdude23:12:30

so the glob is recursive when you use ?

👍 3
jcburley23:12:58

Hmm, doesn't seem to be.

jcburley23:12:15

(Neither is bash.)

jcburley23:12:22

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.

borkdude23:12:02

Why would you use if it isn't recursive? With recursive I mean, it descends into subdirs

jcburley23:12:43

That's what I would have thought, to!

jcburley23:12:02

Ah, in Bash, one must apparently set globstar to get the behavior we're expecting: https://unix.stackexchange.com/questions/49913/recursive-glob

jcburley23:12:18

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

borkdude22:12:56

or is glob non-recursive?

3