code: def exists(self):
          
          if self.name in ("", "/") and self.parent is None:
              return True
          else:
              return self in self.parent.directories
docs: Check whether the directory exists on the camera.