pub fn expand_path( user: Option<&ForUser>, path: &BStr) -> Result<PathBuf, Error>
Expand path for the given user, which can be obtained by parse(), resolving the home directories of user automatically.
path
user
parse()
If more precise control of the resolution mechanism is needed, then use the with() function.
with()