def download_unpack_compressed_tar(name, download_url, downloaded_fpath, final_dirpath, logger, ext='gz'): if download_file(download_url, downloaded_fpath, name, move_file=False): unpack_tar(downloaded_fpath + '.download', final_dirpath, ext=ext) logger.main_info(' Done') else: logger.main_info(' Failed downloading %s from %s!' % (name, download_url)) return False
def download_unpack_compressed_tar(name, download_url, downloaded_fpath, final_dirpath, logger, ext='gz'): if download_file(download_url, downloaded_fpath, name, move_file=True): unpack_tar(downloaded_fpath, final_dirpath, ext=ext) logger.main_info(' Done') return True return False