Skip to main content

truncate

Function truncate 

Source
pub fn truncate(path: &Path) -> Result<()>
Expand description

Truncate a file to zero length, leaving the inode in place. A missing file is not an error.