Function decode_path

Source
pub fn decode_path(encoded_path_string: &str) -> Result<PathBuf, DecodeError>
Expand description

Reverses the encoding of a Path performed by encode_path. This function should always be used to reverse the encoding, as it will correctly detect whether the string ā€˜S’ is an actual path or one that was Base-64 encoded. The function will only return an error if the Path was the Base-64 encoded form and the encoding has been tampered with.