Byron / dua-cli

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

Feature: show free space on current mount point #213

Open ww7 opened 8 months ago

ww7 commented 8 months ago

Top and bottom status line shows the number of files and total size, additionally would be nice to see a free space on the currently opened path in GiB and percentage.

Byron commented 8 months ago

The difficulty here seems to be getting the mount points, as I know no crate that would reliably do that on multiple platforms. To me it's fine to only implement such a thing on platforms where this is straightforward to implement.

I know the trash-rs crate has some code for that as well.