Skip to main content

save_string_atomic

Function save_string_atomic 

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

Atomically replace path with contents, forcing mode 0o600.

See save_bytes_atomic.

ยงErrors

As save_bytes_atomic.