Create the dataDirectory before returning its path.

This commit is contained in:
Matthieu Gautier 2020-04-15 08:24:55 +02:00
parent 4c8aad0e68
commit 9d8bf8ddcb
1 changed files with 1 additions and 0 deletions

View File

@ -435,6 +435,7 @@ std::string getDataDirectory()
#endif
if (!dataDir.empty()) {
dataDir = appendToDirectory(dataDir, "kiwix");
makeDirectory(dataDir);
return dataDir;
}