[–] tmtvl 2y ago ↗ So if I understand it correctly:- It's not actually better than ls:> ignoring the permissions and author of the files (because who cares about those)- Most of the heavy lifting is done by walkdir.A better title may have been "The walkdir crate is awesome". [–] pytness 2y ago ↗ Plus the clap crate. We could make all of this a crate and have the same ls in less than 10 lines
[–] pytness 2y ago ↗ Plus the clap crate. We could make all of this a crate and have the same ls in less than 10 lines
[–] meepmorp 2y ago ↗ Better (as long as you ignore all the missing features) and only 100 lines (as long as you don't include the 3rd party libraries that do the heavy lifting).
[–] tacone 2y ago ↗ I don't get the negativity, looks like a self ironic Rust tutorial to me, which may be quite useful to Rust beginners.
4 comments
[ 3.1 ms ] story [ 19.6 ms ] thread- It's not actually better than ls:
> ignoring the permissions and author of the files (because who cares about those)
- Most of the heavy lifting is done by walkdir.
A better title may have been "The walkdir crate is awesome".