def path.join.if
import bend-kit-files@0.3.1.0/files.bend as Filesimport Base
19def path.join.if(abs: Bool, +a: String, b: String) -> String:
20 match abs:
21 case True{}:
22 b
23 case False{}:
24 path.join.rel(String.is_empty(a) || String.ends_with(a, "/"), a, b)