drives
A rust library (crate) for listing mounted or mountable drives on linux (flash drives, sd-cards, etc.)
Uses the virtual sysfs filesystem (/sys) to gather information about the block devices known by the linux kernel.
Data
- devices
- name
- model, serial
- size
- partitions
- is removable
- partition
- name
- size
- mountpoint (path, filesystem)
Example
For an simple example see simple_main.rs:
cargo run --example simple_main
Documentation
Documentation can be found on docs.rs.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.