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

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