Opened an issue making a case for the inclusion of `fs::read_dir_all` in std:https://github.com/rust-lang/rust/issues/69684 …
Heh, no worries. You make a valid point! I think that kind of functionality would be great to have as well, but that doesn't mean this can't exist as well. There are many cases where that kind of control is simply not needed, and a shorthand function would work great!
-
-
Indeed, it can be quite useful! Btw, the “2d-ness” can be probably taken care of by passing something like Option<Fn(&mut Vec<DirEntry>)> which would sort/prune the list of items that are subject to “add to result / recurse into” decision within the loop.
-
I just remembered https://docs.rs/walkdir/2.3.1/walkdir/ … exists, and there's a strong case for smth like this in std as well, heh. But yeah, different scope. Which is why a simple/obvious API could be a good starting point.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
