use camino::{Utf8Path, Utf8PathBuf};
use pathdiff::diff_utf8_paths;
pub fn relative_path(path: &Utf8Path, base: &Utf8Path) -> Utf8PathBuf {
match diff_utf8_paths(path, base) {
Some(p) => p,
None => path
.canonicalize_utf8()
.expect("could not get absolute path"),
}
}