From 13aec7c2b44e67d41884e4e98b5b9b72e1954688 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 31 Aug 2018 19:22:27 +0200 Subject: [PATCH] Made sure all parent directories are created, if necesssary --- CMakeLists.txt | 2 +- src/xdgjson.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f35860..f37299d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project(xdgjson - VERSION 0.2.0 + VERSION 0.2.1 LANGUAGES CXX ) diff --git a/src/xdgjson.cpp b/src/xdgjson.cpp index 01869ed..795add6 100644 --- a/src/xdgjson.cpp +++ b/src/xdgjson.cpp @@ -20,7 +20,7 @@ xdgjson::xdgjson(const string &filename, const string &subdir) _filepath /= subdir; if (!fs::exists(_filepath)) { - fs::create_directory(_filepath); + fs::create_directories(_filepath); } } _filepath /= filename;