def dirs.of
import bolt@1.27.0.0/src/lint/plan.bend as Planimport Base
import bolt@1.27.0.0/src/config.bend as Config
260# the directory of each path
261def dirs.of(ps: List<&2, String>) -> List<&2, String>:
262 match ps:
263 case Nil{}:
264 Nil{}
265 case Con{p, rest}:
266 Config.dir_of(p) <> dirs.of(rest)