def uri.dots

bend-kit-sigv4@0.11.0.1 · sigv4.bend:113

import bend-kit-sigv4@0.11.0.1/sigv4.bend as Sigv4
import 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)

Uses (11)

Used by (1)