Example #1
0
 def exists(self, path: PATH_TYPES) -> bool:
     """Check whether the provided path exists"""
     if not isinstance(path, pathlib.Path):
         path = pathlib.Path(path)
     return path.exists()
Example #2
0
 def exists(self, path: PATH_TYPES) -> bool:
     if not isinstance(path, self.PATH_BACKEND):
         path = self.PATH_BACKEND(path)
     return bool(path.exists())