@classmethod
def from_path(cls, path: pathlib.PurePosixPath, is_folder: bool) -> '_GithubElement':
    parent_folder = _get_parent_folder(path)
    name = path.name
    return cls(parent_folder=parent_folder, name=name, is_folder=is_folder)
@classmethod
def from_path(cls, path: pathlib.PurePosixPath, is_folder: bool) -> '_GithubElement':
    parent_folder = _get_parent_folder(path)
    name = path.name
    return cls(parent_folder=parent_folder, name=name, is_folder=is_folder)