Function otter::prelude::unistd::truncate[][src]

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

Truncate a file to a specified length

See also truncate(2)