Function truncate

Source
pub fn truncate(name: &str, size: usize) -> Result<()>