Made sure all parent directories are created, if necesssary
the build was successful Details

This commit is contained in:
tastytea 2018-08-31 19:22:27 +02:00
parent 682459e8ed
commit 13aec7c2b4
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project(xdgjson
VERSION 0.2.0
VERSION 0.2.1
LANGUAGES CXX
)

View File

@ -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;