Function kiwix::computeAbsolutePath

Function Documentation

std::string kiwix::computeAbsolutePath(const std::string &path, const std::string &relativePath)

Compute the absolute path of a relative path based on another one

Equivalent to appendToDirectory followed by a normalization of the path.

This function is provided as a small helper. It is probably better to use native tools to manipulate paths.

Parameters
  • path – the base path (if empty, current directory is taken).

  • relativePath – the relative path.

Returns

a absolute path.