Function restore

Source
pub fn restore(file_name: &OsString, contents: &str) -> Result<()>