Skip to main content

write_atomic

Function write_atomic 

Source
pub fn write_atomic(path: &Path, contents: &str) -> Result<()>
Expand description

Replace path through a temp file and rename. We write through a symlink to its target and keep the target’s permissions.