Skip to main content

expand_tilde

Function expand_tilde 

Source
pub fn expand_tilde(input: &str) -> Result<String, PathError>
Expand description

Expand a leading ~ component to the home directory.

Only expands when ~ is the entire path or the first component (~/..., ~\...). Does not expand ~user or mid-path ~/.

ยงFilesystem access

Resolves the home directory via platform APIs / environment.