def is_archive(filepath):
    """Determines if a filepath indicates that it's an archive."""
    exts = [
        ".tar.bz2",
        ".tar.gz",
    ]
    for ext in exts:
        if filepath.endswith(ext):
            return True
    return False