Skip to main content

save_string_atomic_preserving_mode

Function save_string_atomic_preserving_mode 

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

Atomically replace path with contents, keeping the target’s current mode.

See save_bytes_atomic_preserving_mode.

§Errors

As save_bytes_atomic_preserving_mode.