Is there an API to easily collect the results of a parallel WalkBuilder? #2028
-
I want to build a Node.js native addon (with napi-rs) to search a directory for some files that match a pattern. Is there an API that takes a glob pattern and collects results for the parallel builder? For example, I've seen https://github.com/BurntSushi/ripgrep/blob/master/crates/ignore/examples/walk.rs, but wondering if there is an API I can depend on instead...and I'm not sure the best way to collect results from crossbeam. I've also found https://github.com/sharkdp/fd/blob/master/src/walk.rs#L52 too from the Also, when should |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
No, it doesn't exist.
You or someone else would need to build it. I'm not sure what it would look like.
Of course there's overlap!
The problem you're facing is that the In theory, I have plans for rewriting the |
Beta Was this translation helpful? Give feedback.
No, it doesn't exist.
jwalk
is built on top ofignore
. So you might look at its implementation for ideas.You or someone else would need to build it. I'm not sure what it would look like.
Of course there's overlap!
walkdir
is your "classic" production ready recursive directory iterator. It's single threaded, perfectly dumb and gives options for tightly …