Create the dataDirectory before returning its path.

This commit is contained in:
Matthieu Gautier committed 2020-04-15 08:24:55 +02:00
1 parent 4c8aad0e68
commit 9d8bf8ddcb
1 file changed
+1
+1
View File
@@ -435,6 +435,7 @@ std::string getDataDirectory()
#endif
if (!dataDir.empty()) {
dataDir = appendToDirectory(dataDir, "kiwix");
makeDirectory(dataDir);
return dataDir;
}