[][src]Function skellige::prelude::sys::abs

pub fn abs<T>(path: T) -> Result<PathBuf, FuError> where
    T: AsRef<Path>, 

Return the path in an absolute clean form

Examples

use fungus::prelude::*;

let home = user::home_dir().unwrap();
assert_eq!(PathBuf::from(&home), sys::abs("~").unwrap());