/// Return the archive if it is valid. It may have been corrupted or interrupted in the middle of
/// downloading.
// ISSUE(#134) - verify checksum
Return the archive if it is valid. It may have been corrupted or interrupted in the middle of
downloading.
ISSUE(#134) - verify checksum
Return the archive if it is valid . It may have been corrupted or interrupted in the middle of downloading . ISSUE ( #134 ) - verify checksum
fn load_cached_distro(file: &PathBuf) -> Option<Box<dyn Archive>> {
    if file.is_file() {
        let file = File::open(file).ok()?;
        Tarball::load(file).ok()
    } else {
        None
    }
}
fn load_cached_distro ( file : & PathBuf ) -> Option < Box < dyn Archive > > { if file . is_file ( ) { let file = File :: open ( file ) . ok ( ) ? ; Tarball :: load ( file ) . ok ( ) } else { None } }
Return the archive if it is valid.
Return the archive if it is valid .
file
&PathBuf