Skip to main content

portable_id

Function portable_id 

Source
pub fn portable_id(id: &str, namespaced: bool) -> bool
Expand description

The stricter rule for ids of files we create. A name that works on every system and cannot be mistaken for another: lower-case letters, digits, - and _; starts and ends with a letter or digit; at most 100 characters; not a name Windows reserves (con, nul, com1…); and no --, which only a pack’s nodes use as a namespace separator. Files that already exist keep whatever name they have, so older models still open and save.