Skip to main content

from_user_input

Function from_user_input 

Source
pub fn from_user_input(s: &str) -> PathBuf
Expand description

User-input path tolerance: accept C:\foo, C:/foo, ~/foo, ./foo. Folds \/ and expands a leading ~ via expand_tilde. Use when loading config fields where a Linux author may write / and a Windows author may write \ for the same logical location.