pub fn truncate<P>(path: &P, len: i64) -> Result<(), Errno> where P: NixPath + ?Sized,
Truncate a file to a specified length
See also truncate(2)