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