code: def exists(self):
          
          try:
              self.stat()
          except OSError as e:
              if e.errno not in (ENOENT, ENOTDIR):
                  raise
              return False
          return True
docs: Whether this path exists.