pub fn get_relative_or_absolute_path(base: &Path, full: &Path) -> PathBufExpand description
Returns the relative path from base to full if full is inside base.
If full is outside base, returns the absolute path instead.
ยงArguments
base- The base directory to compare against.full- The full path to be shortened.