def is_dir(self) -> bool:
    'Returns True if the path is a directory or submodule.'
    return self.github_tree.is_folder(self.subpath)
Returns True if the path is a directory or submodule.
def is_dir(self) -> bool:
    
    return self.github_tree.is_folder(self.subpath)