Skip to main content

folder_dir_name

Function folder_dir_name 

Source
pub fn folder_dir_name(name: &str) -> String
Expand description

The directory name for a folder, cleaned up as Eagle does on the Mac: tabs and runs of spaces become one space, : / and \\ become spaces, the ends are trimmed and a trailing dot is dropped. A name left empty becomes “Untitled”.