pub fn dir_on_path(dir: &Path, path_dirs: &[PathBuf]) -> bool
True when dir is one of path_dirs, directly or through a symlink.
dir
path_dirs