import zipfile


def unzip(zippath, dirpath):
    """Unzip files from archive to specified directory."""
    try:
        with zipfile.ZipFile(zippath, "r") as zip_file:
            zip_file.extractall(dirpath)
    except zipfile.BadZipFile:
        return False

    return True