FIX: fixed th eissue if the config folder is missing

This commit is contained in:
Henry Winkel
2023-08-08 17:08:07 +02:00
parent 63d81c17be
commit f322a0efbc

View File

@@ -14,6 +14,10 @@ namespace kubecontrol
this->PathToYaml_ = "config/pods/" + this->Label_ + ".yaml";
if( std::filesystem::directory_entry("config").exists() != true)
{
std::filesystem::create_directory("config");
}
std::filesystem::directory_entry entry("config/pods");
if(entry.exists() != true)
{