Made sure all parent directories are created, if necesssary
All checks were successful
the build was successful
All checks were successful
the build was successful
This commit is contained in:
parent
d3d4786e21
commit
4785f8ce64
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.7)
|
cmake_minimum_required (VERSION 3.7)
|
||||||
project(xdgcfg
|
project(xdgcfg
|
||||||
VERSION 0.2.0
|
VERSION 0.2.1
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ xdgcfg::xdgcfg(const string &filename, const string &subdir)
|
||||||
_filepath /= subdir;
|
_filepath /= subdir;
|
||||||
if (!fs::exists(_filepath))
|
if (!fs::exists(_filepath))
|
||||||
{
|
{
|
||||||
fs::create_directory(_filepath);
|
fs::create_directories(_filepath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_filepath /= filename;
|
_filepath /= filename;
|
||||||
|
|
Reference in New Issue
Block a user