Whether this path exists.
(self, *, follow_symlinks=True)
| 453 | __slots__ = () |
| 454 | |
| 455 | def exists(self, *, follow_symlinks=True): |
| 456 | """Whether this path exists.""" |
| 457 | st = self._stat(follow_symlinks=follow_symlinks, ignore_errors=True) |
| 458 | if st is None: |
| 459 | return False |
| 460 | return True |
| 461 | |
| 462 | def is_dir(self, *, follow_symlinks=True): |
| 463 | """Whether this path is a directory.""" |