getPathRelative#

Fully qualified name: carb::extras::getPathRelative

Defined in carb/extras/Path.h

inline Path carb::extras::getPathRelative(
std::string path,
std::string base,
)#

Helper function to calculate a relative path from a provided path and a base path.

Parameters:
  • path – a std::string representation of a path

  • base – a std::string representation of the base path

Returns:

Path(path).getRelative(base)