Opened an issue making a case for the inclusion of `fs::read_dir_all` in std:https://github.com/rust-lang/rust/issues/69684 …
-
-
create_dir_all is for when I want that bottom level directory does exist. remove_dir_all is for removing dir “unconditionally”. Only one way to do them. Traversing the hierarchy sometimes you wanna depth-first, sometimes breadth-first... and you might wanna do it in parallel...
-
I suppose another way to put it is the create/delete all are 1-d in its semantics. A-then-B-then-C. Directory is inherently a 2-d operation - breadth and depth. So it “feels” different... FWIW, my two completely unsolicited cents!

- 3 more replies
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.