Skip to main content

numbered_name

Function numbered_name 

Source
fn numbered_name(name: &OsStr, n: u32, is_dir: bool) -> OsString
Expand description

name (n).ext for a file, name (n) for a folder (whose dots aren’t an extension) or a name with no extension. Works on the raw name, so a name that isn’t valid Unicode keeps its bytes.