pub fn truncate(path: &Path) -> Result<()>
Truncate a file to zero length, leaving the inode in place. A missing file is not an error.