43 releases (18 breaking)
| 0.19.2 | Dec 22, 2025 |
|---|---|
| 0.18.0 | Nov 22, 2025 |
| 0.13.0 | Jul 25, 2025 |
| 0.12.0 | Dec 21, 2024 |
| 0.3.1 | Oct 18, 2020 |
#2677 in Filesystem
7,073 downloads per month
Used in 8 crates
(4 directly)
83KB
2.5K
SLoC
Use lfs_core::read_mounts to get information on all mounted volumes.
// get all mount points
let options = lfs_core::ReadOptions::default();
let mut mounts = lfs_core::read_mounts(&options).unwrap();
// only keep the one with size stats
mounts.retain(|m| m.stats.is_ok());
// print them
for mount in mounts {
dbg!(mount);
}
The dysk application is a viewer for lfs-core and shows you the information you're expected to find in mounts.
Give information on the mounted disks in linux, Mac, and Windows (experimental).
lfs-core provides the data of dysk and of the :fs screen of broot.
You can also use the library in your own programs.
Dependencies
~2–32MB
~531K SLoC