def join

bolt@1.27.0.0 · src/lsp/path.bend:17

import bolt@1.27.0.0/src/lsp/path.bend as Path
import Base

17# dir and rel as one absolute path, its `.` and `..` resolved
18def join(dir: String, rel: String) -> String:
19  "/" ++ String.join(List.reverse(&2, String, norm(String.split(dir ++ "/" ++ rel, '/'), [])), "/")

Uses (8)

Used by (4)