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

Fix deletion process on Rust 1.55 #107

Closed Bobo1239 closed 3 years ago

Bobo1239 commented 3 years ago

Rust 1.55 unfortunately breaks the existing code which assumed that ErrorKind::Other will be returned by fs::read_dir() when a file is encountered. For now just always try deleting as if it's a file with the possibility to add the optimization back again once the io_error_more feature is stabilized.

References:

Byron commented 3 years ago

v2.14.7 was just released.