get_relative_or_absolute_path

Function get_relative_or_absolute_path 

Source
pub fn get_relative_or_absolute_path(base: &Path, full: &Path) -> PathBuf
Expand 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.