Run.disk.all: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/run.bend as Run Lines 144-154 of ezx@1.11.0.0/src/lock/run.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/lock/run.bend&start_line=144&end_line=154 import Base import ezx@1.11.0.0/src/io/file.bend as F import ezx@1.11.0.0/src/pkg/pkg.bend as K import ezx@1.11.0.0/src/pkg/path.bend as P # every file a tree's manifest names, read from beside it. A file that is not # there reads as "", which does not hash to its sum. def disk.all(+dir: String, fs: List<&2, K.Item>) -> IO(List<&2, String>): match fs: case []: IO.pure(List<&2, String>, []) case +h <> t: do IO>: m : Maybe<&2, String> <- F.read(P.join(dir, K.file.at(h))) rest : List<&2, String> <- disk.all(dir, t) return F.text_of(m) <> rest Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/io/file.bend&name=read https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/io/file.bend&name=text_of https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/path.bend&name=join https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=Item https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=file.at