Add a tool's function to get the data directory.

The data directory is where kiwix application should store data.
This commit is contained in:
Matthieu Gautier
2018-08-29 12:04:40 +02:00
parent 9b516ac35d
commit f4846c1ac8
2 changed files with 27 additions and 0 deletions

View File

@ -59,5 +59,6 @@ bool copyFile(const string& sourcePath, const string& destPath);
string getLastPathElement(const string& path);
string getExecutablePath();
string getCurrentDirectory();
string getDataDirectory();
bool writeTextFile(const string& path, const string& content);
#endif