Bugfix: Made sure that parent directories are created, if necessary.
parent
edb6a91b82
commit
2ddb5060ed
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.6)
|
cmake_minimum_required (VERSION 3.6)
|
||||||
project (whyblocked
|
project (whyblocked
|
||||||
VERSION 0.6.0
|
VERSION 0.6.1
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ const string get_filepath()
|
||||||
filepath += "/whyblocked";
|
filepath += "/whyblocked";
|
||||||
if (!fs::exists(filepath))
|
if (!fs::exists(filepath))
|
||||||
{
|
{
|
||||||
fs::create_directory(filepath);
|
fs::create_directories(filepath);
|
||||||
}
|
}
|
||||||
filepath += "/database.sqlite";
|
filepath += "/database.sqlite";
|
||||||
if (!fs::exists(filepath))
|
if (!fs::exists(filepath))
|
||||||
|
|
Loading…
Reference in New Issue