[−][src]Function paths_as_strings::decode_path
pub fn decode_path(encoded_path_string: &str) -> Result<PathBuf, DecodeError>
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.