{{ node.path|pathjoin }}

{% if node.typ in (NodeType.ROOT, NodeType.DIR) %}

Subdirs:

{% for child in node.children|sort(attribute='total_children', reverse=True) %}{% if child.typ in NodeGroup.DIRLIKE %}
{{ child.name }}: {{ child.total_size|data }} - {{ child.total_children|commafy }} children {% endif %}{% endfor %}

Files:

{% for child in node.children|sort(attribute='name') %}{% if child.typ in NodeGroup.FILELIKE %}
{{ child.name }}: {{ child.total_size|data }} {% endif %}{% endfor %}
{% endif %}