Skip to main content

validate_path_str

Function validate_path_str 

Source
pub fn validate_path_str(path_str: &str) -> Result<(), String>
Expand description

Validates that a path string is non-empty and does not contain unsafe components.

This is for multi-segment filesystem paths (config dirs, output dirs). For a single id/file stem, use validate_path_segment instead.