Function validate_path_part

Source
pub fn validate_path_part(s: &str) -> Result<(), ValidationError>
Expand description

Validate a path component (file or directory name).

ยงErrors

Returns ValidationError if any of the validation checks fails.