def exists(path):
    # Figure out what (if any) part of the path is a zip archive.
    archive_path, file_path = split_zip_path(path)

    # If the user is not trying to check a zip file, just use os.path...
    if not archive_path:
        return os.path.exists(path)

    # otherwise check the zip file.
    with closing(zipfile.ZipFile(archive_path, mode = "r")) as archive:
        try:
            archive.getinfo(file_path)
        except KeyError:
            try:
                archive.getinfo(file_path + "/")
            except __HOLE__:
                return False

        return True
dataset/ETHPy150Open brownhead/superzippy/superzippy/bootstrapper/zipsite.py/exists