joker

Discuss all things joker, the Clojure interpreter/linter on top of Go. https://github.com/candid82/joker
borkdude 2020-12-27T22:45:50.012200Z

isn't this what glob is for btw? (https://candid82.github.io/joker/joker.filepath.html#glob)

👍 1
borkdude 2020-12-27T22:45:56.012400Z

or is glob non-recursive?

❓ 1
jcburley 2020-12-27T23:09:07.012500Z

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.

borkdude 2020-12-27T23:09:30.012900Z

so the glob is recursive when you use ?

👍 1
jcburley 2020-12-27T23:09:58.013200Z

Hmm, doesn't seem to be.

jcburley 2020-12-27T23:10:15.013400Z

(Neither is bash.)

jcburley 2020-12-27T23:11:22.013600Z

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.

borkdude 2020-12-27T23:12:02.013800Z

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

jcburley 2020-12-27T23:12:43.014Z

That's what I would have thought, to!

jcburley 2020-12-27T23:15:02.014200Z

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

jcburley 2020-12-27T23:17:18.014500Z

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