mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-10-23 17:39:16 -04:00
Create the dataDirectory before returning its path.
This commit is contained in:
1 parent
4c8aad0e68
commit
9d8bf8ddcb
1 file changed
+1
@@ -435,6 +435,7 @@ std::string getDataDirectory()
|
||||
#endif
|
||||
if (!dataDir.empty()) {
|
||||
dataDir = appendToDirectory(dataDir, "kiwix");
|
||||
makeDirectory(dataDir);
|
||||
return dataDir;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user