def dir.step
import ezsys@0.1.0.0/src/dir.bend as Dirimport Base
68# what dir.list answers for a directory read's answer: its names, or the
69# failure unchanged
70def dir.step(
71 res: Result<&1, &1, U32 & String, List<&2, String>>
72) -> Result<&1, &1, U32 & String, List<&2, String>>:
73 match res:
74 case Fail{error}:
75 Fail{error}
76 case Done{raw}:
77 Done{dir.names(raw)}