pub fn truncate<P>(path: &P, len: i64) -> Result<(), Errno> where
    P: NixPath + ?Sized
Expand description

Truncate a file to a specified length

See also truncate(2)