pub fn validate_new_name(name: &str) -> Result<(), String>
Validate a new file or folder name with the current platform’s rules.