pub fn save_string_atomic_preserving_mode( path: &Path, contents: &str, ) -> Result<(), Error>
Atomically replace path with contents, keeping the target’s current mode.
path
contents
See save_bytes_atomic_preserving_mode.
save_bytes_atomic_preserving_mode
As save_bytes_atomic_preserving_mode.