Returns True if the path is a directory or submodule.
(self)
| 301 | yield self / filename.name |
| 302 | |
| 303 | def is_dir(self) -> bool: |
| 304 | """Returns True if the path is a directory or submodule.""" |
| 305 | return self.github_tree.is_folder(self.subpath) |
| 306 | |
| 307 | def is_file(self) -> bool: |
| 308 | """Returns True if the path is a file.""" |