Skip to main content

safe_file_name

Function safe_file_name 

Source
pub fn safe_file_name(name: &str) -> String
Expand 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.