Skip to main content

replace_package_file

Function replace_package_file 

Source
pub fn replace_package_file(path: &Path, bytes: &[u8]) -> Result<()>
Expand description

Replace an owned output by renaming a unique sibling, never truncating the previous inode. Failure removes only this writer’s temporary file.