fn write_atomically( dir: &Path, final_path: &Path, name: &str, bytes: &[u8], ) -> Result<(), DownloadError>