Skip to main content

normalize_path

Function normalize_path 

Source
pub fn normalize_path(path: &str) -> String
Expand description

Normalizes a path by stripping a trailing / (except for the root path /, which stays as /).

§Arguments

  • &str - Shared reference to a str.

§Returns

  • String - A String value.