def uri.dots
import bend-kit-sigv4@0.11.0.1/sigv4.bend as Sigv4import Base
113def uri.dots(+path: String) -> String:
114 +body = String.join(wire.segs(dots(String.split(path, '/'), Nil{})), "/")
115 +trail = Bool.or(String.ends_with(path, "/"), Bool.or(String.ends_with(path, "/."), String.ends_with(path, "/..")))
116 uri.slash(String.is_empty(body), trail, body)