Skip to main content

write_private

Function write_private 

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

Write content to path atomically (temp file + rename) with mode 0600. A crash mid-write leaves the previous file intact, never a truncated one.