pub fn write_if_missing(path: &Path, contents: &str) -> Result<()>
Write a file only if it doesn’t already exist.