[−][src]Function bloguen::util::concat_path
pub fn concat_path<W: Into<PathBuf>>(whom: W, with: &str) -> PathBuf
Correctly append the specified string onto the specified path.
Works well even for "\\?\"
paths on Windows, which don't handle ".."
, e.g., well.
Only really required for user input.
Examples
assert_eq!(concat_path("hi/my/name/is", "what"), Path::new("hi/my/name/is/what")); assert_eq!(concat_path("/hi/my/name/is/slim/shady", ".././../who"), Path::new("/hi/my/name/is/who"));