Returns True if the path exists.
(self)
| 309 | return self.github_tree.is_file(pathlib.PurePosixPath(self.subpath)) |
| 310 | |
| 311 | def exists(self) -> bool: |
| 312 | """Returns True if the path exists.""" |
| 313 | return self.is_dir() or self.is_file() |
| 314 | |
| 315 | def read_bytes(self) -> bytes: |
| 316 | """Returns the file content as bytes.""" |