pub fn relative_canonicalized_path_to_string(
    path: impl AsRef<Path>
) -> Result<String>
Expand description

This function converts a canonicalized relative path to a string, returning an error if the path is not valid unicode.

This function will also fail if the path is non canonical, i.e. contains .. or ., or if the path components contain any windows or unix path separators.