Function kiwix::computeRelativePath¶
Defined in File tools.h
Function Documentation¶
-
std::string
kiwix
::
computeRelativePath
(const std::string &path, const std::string &absolutePath)¶ Compute the relative path of a path relative to another one
This function is provided as a small helper. It is probably better to use native tools to manipulate paths.
- Parameters
path – the base path.
absolutePath – the absolute path to find the relative path for.
- Returns
a relative path (pointing to absolutePath, relative to path).