code: def has_directory(self, name: str):
          '''
          check whether this directory contains the directory.
          '''
          return os.path.isdir(self._path / namef has_directory(self, name: str):
          '''
          check whether this directory contains the directory.
          '''
          return os.path.isdir(self._path / name)
docs: check whether this directory contains the directory.