def write
import ezx@1.11.0.0/src/lock/run.bend as Runimport Base
import snap@1.4.0.0/main.bend as R
import ezx@1.11.0.0/src/io/file.bend as F
import ezx@1.11.0.0/src/pkg/path.bend as P
592# one file written, with the directory it goes in made first
593def write(+at: String, text: String) -> IO(Unit):
594 do IO<Unit>:
595 _mk : String <- R.exec(["mkdir", "-p", P.dir(at)])
596 ok : Bool <- F.write(at, text)
597 wrote(ok, at)