path_from_native_bytes

Function path_from_native_bytes 

Source
pub fn path_from_native_bytes(bytes: &[u8]) -> Result<PathBuf>
Expand description

Resolves native Unix bytes or canonical Windows WTF-8 without replacement.

ยงErrors

Returns an error if the bytes cannot be represented on the current OS.