Skip to main content

path_from_bytes

Function path_from_bytes 

Source
pub fn path_from_bytes(bytes: Vec<u8>) -> Result<PathBuf, PathBytesError>
Expand description

The path path_bytes recorded. Bytes it never gives fail with PathBytesError: on Windows, bytes that aren’t WTF-8, such as Latin-1 from a Linux device. On Unix any bytes are a path.