def ups
import bolt@1.27.0.0/src/rules.bend as Rulesimport Base
import bolt@1.27.0.0/src/rules/imports.bend as Imports
130# a directory and each of its parents but ``, nearest first: `a/b/` is
131# `a/b/` then `a/`
132def ups(dir: String) -> List<&2, String>:
133 ups.go(List.reverse(&2, String, Imports.init(String.split(dir, '/'))))