Crate lfs_core

source ·
Expand description

Use lfs_core::read_mounts to get information on all mounted volumes on a unix system.

// 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 lfs application is a viewer for lfs-core and shows you the information you’re expected to find in mounts.

Structs

Enums

Functions

Type Aliases