def make
import ezx@1.11.0.0/src/share/exec.bend as Execimport Base
import snap@1.4.0.0/main.bend as R
16# those directories made. Base has no mkdir, so this is coreutils, and no
17# directory means no run at all.
18def make(ds: List<&2, String>) -> IO(Unit):
19 match ds:
20 case []:
21 IO.pure(Unit, Unit{})
22 case h <> t:
23 do IO<Unit>:
24 _mk : String <- R.exec(List.append(&2, String, ["mkdir", "-p"], h <> t))
25 return Unit{}