Skip to main content

read_disk_space

Function read_disk_space 

Source
pub fn read_disk_space(path: &Path) -> Result<DiskSpace>
Expand description

Read filesystem capacity at path. On Unix, bytes = fragment size × block counts (f_frsize × f_blocks, f_frsize × f_bavail); on Windows, the caller-visible totals GetDiskFreeSpaceExW reports.