filesize
pub fn file_real_size<P: AsRef<Path>>(path: P) -> Result<u64>
Get the on-disk size of the file at the given path.
path
let realsize = filesize::file_real_size("Cargo.toml")?;