pub fn resolve_path(path: &str) -> String
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.
path
The absolute path as a String