pub fn transform_path(prefix: &str, path: &str, strip: bool) -> StringExpand description
Transform path by optionally stripping prefix.
When strip is true the leading prefix is removed. If the result
would be empty, "/" is returned instead.