示例#1
0
文件: misc.py 项目: student-t/quast
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
示例#2
0
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
示例#3
0
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