From 2ddb5060ed19403b7bfc6528d1dbeb86271ae6e8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 30 Aug 2018 23:39:54 +0200 Subject: [PATCH] Bugfix: Made sure that parent directories are created, if necessary. --- CMakeLists.txt | 2 +- src/whyblocked.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0bbabde..3bcf0fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.6) project (whyblocked - VERSION 0.6.0 + VERSION 0.6.1 LANGUAGES CXX ) diff --git a/src/whyblocked.cpp b/src/whyblocked.cpp index e41c0d4..f78ed17 100644 --- a/src/whyblocked.cpp +++ b/src/whyblocked.cpp @@ -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))