adapted filesystem library
This commit is contained in:
@@ -203,12 +203,14 @@ std::string FlippRServer::create_directory(std::string file_name)
|
|||||||
{
|
{
|
||||||
std::string runtime_dir = this->get_runtime_dir();
|
std::string runtime_dir = this->get_runtime_dir();
|
||||||
|
|
||||||
fs::path path = runtime_dir + file_name;
|
fs::path path = runtime_dir;
|
||||||
if(!fs::exists(path))
|
if(!fs::exists(path))
|
||||||
{
|
{
|
||||||
fs::create_directory(path);
|
fs::create_directory(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
path += file_name;
|
||||||
|
|
||||||
return path.string();
|
return path.string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user