Function resolve_path

Source
pub fn resolve_path(path: &str) -> String
Expand description

Resolves a path string to its absolute form. If the path starts with ‘~’, it will be expanded to the user’s home directory. Returns an empty string if the input path is empty.

§Arguments

  • path - The path string to resolve

§Returns

The absolute path as a String