Skip to content

Is there an API to easily collect the results of a parallel WalkBuilder? #2028

Answered by BurntSushi
vjpr asked this question in Q&A
Discussion options

You must be logged in to vote

Is there an API that takes a glob pattern and collects results for the parallel builder?

No, it doesn't exist.

For example, jwalk has a nice API on top of its parallel reader.

jwalk is built on top of ignore. So you might look at its implementation for ideas.

but again looks too complicated, and would rather rely on a higher-level API

You or someone else would need to build it. I'm not sure what it would look like.

Also, when should walkdir be used, and when should ignore be used? Seems like there is some overlap...

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 …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vjpr
Comment options

@BurntSushi
Comment options

Answer selected by vjpr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants