code: def isdir(self, relpath):
      
      if self._isdir_raw(relpath):
        if not self.isignored(relpath, directory=True):
          return True
  
      return False
docs: Returns True if path is a directory and is not ignored.