pub fn path_from_bytes(bytes: &[u8]) -> Result<&Path, BadPathEncoding>
Expand description
Constructs Path
from bytes
in platform-specific manner.
On Unix, this function never fails because paths are just bytes. On Windows, this may return error if the input wasn’t well-formed UTF-8.