code: def scandir(self, relpath):
      
      if self.isignored(relpath, directory=True):
        self._raise_access_ignored(relpath)
  
      return self._filter_ignored(self._scandir_raw(relpath), selector=lambda e: e.path)
docs: Return paths relative to the root, which are in the given directory and not ignored.