A randomized file walker I wrote primarily to learn Rust. The goal is to quickly sample large remote directories (e.g. NFS or SMB). Think find, but in random order. This is useful on very large...
A randomized file walker I wrote primarily to learn Rust.
The goal is to quickly sample large remote directories (e.g. NFS or SMB). Think find, but in random order. This is useful on very large directories because find will only show you the first entries, while this can quickly give you a good overview. Since it's asynchronous with Tokio, it's also faster than find for remote directories with high-latency.
Nice code! It looks really tidy and understandable. I didn't even know that you can name loops in Rust.
I really like this one.
Thanks! Yeah, named loops are nice, safe alternative to goto.
A randomized file walker I wrote primarily to learn Rust.
The goal is to quickly sample large remote directories (e.g. NFS or SMB). Think
find
, but in random order. This is useful on very large directories because find will only show you the first entries, while this can quickly give you a good overview. Since it's asynchronous with Tokio, it's also faster thanfind
for remote directories with high-latency.Comments / Code review more than welcome !
Neat! It might be interesting to pipe it into another command that displays a summarizing dashboard, sort of like
top
.