pub fn safe_file_name(name: &str) -> StringExpand description
A user’s file name made safe as a single path component: separators, control characters and Windows-reserved characters replaced, leading dots and trailing dots/spaces trimmed, length bounded.