def METHOD_NAME(self, hard_only=False):
    output = StringIO()
    for c in sorted(self.path_map.keys()):
        if c == "/":
            continue
        self._dumpNode(output, self.path_map[c], 0, only_hard=hard_only)
    return output.getvalue()