Skip to content

Is it safe to assume that Walk will go through every file in a subdirectory first before moving on to another one? #2847

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

You must be logged in to vote

I don't think so, no. And you especially can't when using WalkParallel.

I believe single threaded will use depth first traversal. So you shouldn't even be seeing the behavior you're asking for (breadth first search) in practice...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ItsSunnyMonster
Comment options

Answer selected by BurntSushi
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