Checks if path exists. Returns False if issues occur connecting to GCS.
(path: epath.Path)
| 71 | |
| 72 | |
| 73 | def exists(path: epath.Path) -> bool: |
| 74 | """Checks if path exists. Returns False if issues occur connecting to GCS.""" |
| 75 | try: |
| 76 | return path.exists() |
| 77 | except gcs_unavailable_exceptions(): # pylint: disable=catching-non-exception |
| 78 | return False |
| 79 | |
| 80 | |
| 81 | @py_utils.memoize() |
no test coverage detected