Plan.dir.of: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/tool/plan.bend as Plan Lines 309-318 of ezx@1.11.0.0/src/tool/plan.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/tool/plan.bend&start_line=309&end_line=318 import Base import ezx@1.11.0.0/src/tool/world.bend as TW import ezx@1.11.0.0/src/ez/target.bend as Tgt # the cache directory of a target: `/` for a remote, and # `/local` for a path def dir.of(pl: Tgt.Place, +root: String, +world: TW.World) -> String: match pl: case Tgt.Bad{_why}: root case Tgt.Local{p}: root ++ "/local" ++ loc.abs(loc(p, world)) case Tgt.Remote{_url, slug}: root ++ "/" ++ slug Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/target.bend&name=Place https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/tool/plan.bend&name=loc https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/tool/plan.bend&name=loc.abs https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/tool/world.bend&name=World