Skip to content

aminraay/win-partitions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

win-partitions

A Rust crate to get windows partitions list and their information using Windows API.

Example

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!();
    }
}

About

Get disk partition's information on Windows.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages