def is_file(self, path: pathlib.PurePosixPath) -> bool:
    parent_folder = _get_parent_folder(path)
    files = self.files_per_folder.get(parent_folder)
    if (not files):
        return False
    file = _GithubElement(parent_folder=parent_folder, name=path.name, is_folder=False)
    return (file in files)
def is_file(self, path: pathlib.PurePosixPath) -> bool:
    parent_folder = _get_parent_folder(path)
    files = self.files_per_folder.get(parent_folder)
    if (not files):
        return False
    file = _GithubElement(parent_folder=parent_folder, name=path.name, is_folder=False)
    return (file in files)