Skip to main content

bytes_to_path_string

Function bytes_to_path_string 

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

Interpret raw path bytes as a UTF-8 String, failing rather than guessing: git stores paths as opaque bytes, and callers that must echo them back into string-shaped data structures refuse non-UTF-8 input explicitly.