Skip to main content

transform_path

Function transform_path 

Source
pub fn transform_path(prefix: &str, path: &str, strip: bool) -> String
Expand 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.