pub fn validate_path_component(value: &str) -> Result<(), Error>
Validates a value used as one filesystem path component.
Returns an error if the value is empty, a dot component, or contains a path separator or NUL byte.