pub fn write_file(path: &Path, content: &str) -> Result<()>