def RenderBranch(self, path, request):
    """Renders tree leafs for filesystem path."""
    aff4_root = rdfvalue.RDFURN(request.REQ.get("aff4_root", self.root_path))
    urn = aff4_root.Add(path)
    try:
      directory = aff4.FACTORY.Create(urn, "VFSDirectory", mode="r",
                                      token=request.token)
      children = list(directory.ListChildren(limit=100000))
      infos = aff4.FACTORY.Stat(children, token=request.token)
      info_by_urn = {}
      for info in infos:
        info_by_urn[info["urn"]] = info

      for child_urn in children:
        info = info_by_urn.get(child_urn)
        if info:
          typeinfo = info.get("type")
          if typeinfo:
            class_name = typeinfo[1]
            cls = aff4.AFF4Object.classes.get(class_name)
            if cls and "Container" not in cls.behaviours:
              continue
        self.AddElement(child_urn.RelativeName(urn))

    except __HOLE__ as e:
      self.message = "Error fetching %s: %s" % (urn, e)
dataset/ETHPy150Open google/grr/grr/gui/plugins/configuration_view.py/ConfigurationTree.RenderBranch