def dir
import ezx@1.11.0.0/src/sha/nar.bend as Narimport Base
import ezx@1.11.0.0/src/pkg/pkg.bend as K
91# a directory's node as NAR writes it: its entries sorted by name, whatever
92# order they were listed in. `String.is_le` is codepoint order, which is nix's
93# byte order for the UTF-8 of valid names. Every directory the walk serializes
94# goes through here, so the order `find` printed its names in never reaches
95# the NAR.
96def dir(es: List<&2, K.Item>) -> String:
97 directory(K.file.sort(es))