<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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