Whether this path exists.
(self)
| 1228 | # Convenience functions for querying the stat results |
| 1229 | |
| 1230 | def exists(self): |
| 1231 | """ |
| 1232 | Whether this path exists. |
| 1233 | """ |
| 1234 | try: |
| 1235 | self.stat() |
| 1236 | except OSError as e: |
| 1237 | if not _ignore_error(e): |
| 1238 | raise |
| 1239 | return False |
| 1240 | except ValueError: |
| 1241 | # Non-encodable path |
| 1242 | return False |
| 1243 | return True |
| 1244 | |
| 1245 | def is_dir(self): |
| 1246 | """ |