code: def isdir(self, path, follow_symlinks=True):
          
          return self._is_of_type(path, S_IFDIR, follow_symlinks)
docs: Determine if path identifies a directory.
  
          Args:
              path: Path to filesystem object.
  
          Returns:
              `True` if path points to a directory (following symlinks).
  
          Raises:
              TypeError: if path is None.