diff --git a/CMakeLists.txt b/CMakeLists.txt index f37299d..7483a9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project(xdgjson - VERSION 0.2.1 + VERSION 0.2.2 LANGUAGES CXX ) diff --git a/src/xdgjson.cpp b/src/xdgjson.cpp index 795add6..853c676 100644 --- a/src/xdgjson.cpp +++ b/src/xdgjson.cpp @@ -18,10 +18,10 @@ xdgjson::xdgjson(const string &filename, const string &subdir) if (!subdir.empty()) { _filepath /= subdir; - if (!fs::exists(_filepath)) - { - fs::create_directories(_filepath); - } + } + if (!fs::exists(_filepath)) + { + fs::create_directories(_filepath); } _filepath /= filename; }