pub fn write_private(path: &Path, content: &str) -> Result<()>Expand description
Write content to path, creating the file owner-only (0600).
On Unix the mode applies from the first byte and pre-existing files are tightened to 0600 as well; on other platforms this is a plain write (Windows relies on ACLs).
ยงErrors
Returns an error if the file cannot be created or written.