device_status 0.1.1

This crate allow you to obtain information of the disk space in a particular device where a given path is located
Documentation
1
2
3
4
5
6
7
8
9
10
use super::info::Device;
use std::path::Path;

//#[pyfunction]
pub fn print(id:u32,name:&str,path:&Path) {
	let device = Device::new(id, name, path);
	println!("{}", device);
	println!("{}", device.memory_info());
	println!("{}", device.json());
}