Function kiwix::removeLastPathElement
Defined in File tools.h
Function Documentation
-
std::string kiwix::removeLastPathElement(const std::string &path)
Remove the last element of a path.
This function is provided as a small helper. It is probably better to use native tools to manipulate paths.
- Parameters:
path – a path.
- Returns:
The parent directory (or empty string if none).