pub fn atomic_write(path: &Path, content: &str) -> Result<()>
Write content to path atomically using a temp-file + rename pattern. Prevents file corruption if the process is interrupted mid-write.
content
path