Skip to main content

parse

Function parse 

Source
pub fn parse(contents: &str, home: &Path) -> UserDirs
Expand description

Parses the contents of a user-dirs.dirs file. home is substituted for a leading $HOME in each value, matching how xdg-user-dirs itself writes the file.