Age | Commit message (Collapse) | Author |
|
But it's the wrong track, it's too slow.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This one took a lot longer than I'd like!
|
|
|
|
|
|
|
|
This one was a little trickier, as the obvious solution for navigating back up a tree is to keep a reference to the parent.
However that's essentially a doubly linked list which is a pain in the ass in Rust.
Instead, use a separate variable for the current 'key' into the tree
I'm not especially happy with the terminal processing as well, since after the 'ls' command we need to 'peek' at the next entry to see if the 'ls' has finished and we're onto a next command
I couldn't think of a very good way to do this except loops and loops.
|
|
Reasonably simple this one :)
|
|
Not super happy with this, fell back to iterative programming pretty heavily (:
Also a ton of .unwrap(), but this is an artifical problem not a real world
|
|
|
|
|