Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

        def untar(tar_file, dest_path):
    # Check it actually needs to be unarchived
    if not is_archive_file(tar_file):
        return

    if os.path.exists(dest_path):
        print "Already unarchived. Clean if you want to get a fresh copy"
        return

    print "Unarchiving"
    tar_file = tarfile.open(tar_file)
    tar_file.extractall(dest_path)
    print "Finished unarchiving"
        


src/s/e/seedBank-HEAD/seedbank/manage.py   seedBank(Download)
            release)
        self._download(url, archive_dst)
        utils.untar(archive, temp_firmware)
        self._extract_debs(temp_firmware)
        src = os.path.join(temp_firmware, 'temp', 'lib/firmware')

src/c/g/cgaljs-HEAD/tools/build.py   cgaljs(Download)
import os
import shutil
from subprocess import call
from utils import download, untar
 
def download_tarballs(downloads, working_dir):
    for download_url in downloads:
        download_file_path = download(download_url, get_download_dir(working_dir))
        untar(download_file_path, get_source_dir(working_dir))