pub fn write_file_atomic<P: AsRef<Path>>(path: P, content: &str) -> Result<()>
Write content to a file atomically