Skip to main content

write_atomic

Function write_atomic 

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

Writes bytes to path atomically (tempfile + fsync + rename + 0o600).

Used by save and export -o (atomwrite rule).