Bugfix: Made sure that parent directories are created, if necessary.

develop
tastytea 2018-08-30 23:39:54 +02:00
parent edb6a91b82
commit 2ddb5060ed
No known key found for this signature in database
GPG Key ID: CFC39497F1B26E07
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.6)
project (whyblocked
VERSION 0.6.0
VERSION 0.6.1
LANGUAGES CXX
)

View File

@ -40,7 +40,7 @@ const string get_filepath()
filepath += "/whyblocked";
if (!fs::exists(filepath))
{
fs::create_directory(filepath);
fs::create_directories(filepath);
}
filepath += "/database.sqlite";
if (!fs::exists(filepath))