Skip to main content

path_bytes_text

Function path_bytes_text 

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

The text that shows a path from its recorded bytes, as SQL’s coven_path_text gives it: valid UTF-8 as it is, and each byte that isn’t as \x and two uppercase hex digits. Caf\xE9.flac shows a Latin-1 name. A backslash already in the name stays as it is, so a name spelled Caf\xE9.flac shows the same: the text can’t be turned back into the path, and nothing opens a file by it.