[[!tag learning-rust]]
Today I'm not reading another chapter. Instead I want to try my hand
at writing some Rust. I want to have an iterator that scans a
directory tree, and returns a std::fs::DirEntry
for each file,
directory, or other filesystem object. I want to call the iterator
something like this:
let tree = DirTree::new("/");
for entry in tree {
println!("{:?}", entry.path.display());
}
http://git.liw.fi/rust/fswalk/ took me too long, but I got it working. Not pretty, and hides a source of errors, but good enough for today.