Byron / dua-cli

View disk space usage and delete unwanted data, fast.
https://lib.rs/crates/dua-cli
MIT License
4.19k stars 113 forks source link

parallel deletion (without following symlinks) using jwalk #43

Open Byron opened 4 years ago

Byron commented 4 years ago

Previously jwalk would follow symlinks, so we could not use it and instead implemented our own traversal.

Now with jwalk 0.5, this is supported and we can use our standard jwalker to do the job.

https://github.com/Byron/dua-cli/blob/543f7f3948c26250a8fc6ebf79a49f3ddfa3cb63/src/interactive/app/handlers.rs#L305-L340

The function above would have to change to use jwalk. It should be straightforward to obtain a walker with this function:

https://github.com/Byron/dua-cli/blob/0d6116eea1e741bc8bc1fc6d04536c8242c5aa42/src/common.rs#L162-L184