Crates.io | win_partitions |
lib.rs | win_partitions |
version | 0.3.0 |
source | src |
created_at | 2021-09-12 15:08:30.266892 |
updated_at | 2021-09-13 05:58:21.932498 |
description | Provides list of system partitions and their information for Windows |
homepage | |
repository | |
max_upload_size | |
id | 450124 |
size | 14,880 |
A Rust crate to get windows partitions list and their information using Windows API.
use win_partitions::windows_partition::get_partitions;
fn main() {
let list = get_partitions();
for i in list.unwrap() {
println!("Drive {} ({})", i.letter, i.name);
println!("Ready: {}", i.ready);
println!("File System: {}", i.file_system_name);
println!("Free Space: {} / {} Bytes", i.free_space, i.size);
println!();
}
}