From 4785f8ce6408e0a385e52b9e1134f67d26fb3347 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 31 Aug 2018 19:22:00 +0200 Subject: [PATCH] Made sure all parent directories are created, if necesssary --- CMakeLists.txt | 2 +- src/xdgcfg.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4996c55..3df539d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project(xdgcfg - VERSION 0.2.0 + VERSION 0.2.1 LANGUAGES CXX ) diff --git a/src/xdgcfg.cpp b/src/xdgcfg.cpp index 3c4b09e..156cb36 100644 --- a/src/xdgcfg.cpp +++ b/src/xdgcfg.cpp @@ -23,7 +23,7 @@ xdgcfg::xdgcfg(const string &filename, const string &subdir) _filepath /= subdir; if (!fs::exists(_filepath)) { - fs::create_directory(_filepath); + fs::create_directories(_filepath); } } _filepath /= filename;