pub fn validate_dir(dir: &[&[u8]]) -> Result<(), KeyError>Expand description
Validate a directory path: every segment must be valid UTF-8.
Every backend calls this before touching its engine, so an invalid path fails with one answer on every backend. An empty segment is valid (the empty string is valid UTF-8), and the empty path (the root) is valid.