diff --git a/ecal/core/cfg/gen/generate_configuration_yaml.cpp b/ecal/core/cfg/gen/generate_configuration_yaml.cpp index ae9f4ceac2..faa956d2c5 100644 --- a/ecal/core/cfg/gen/generate_configuration_yaml.cpp +++ b/ecal/core/cfg/gen/generate_configuration_yaml.cpp @@ -78,7 +78,7 @@ int main(int argc, char* argv[]) { // create the ecal paths for (const std::string& path : dir_paths) { - if (!path.empty() && eCAL::Config::createEcalDirStructure(path)) + if (!path.empty() && eCAL::Util::createEcalDirStructure(path)) { created_path = path; std::cout << "Created eCAL directory structure in: " << path << "\n"; diff --git a/ecal/core/src/config/ecal_path_processing.cpp b/ecal/core/src/config/ecal_path_processing.cpp index d9d288e11b..4278a09d09 100644 --- a/ecal/core/src/config/ecal_path_processing.cpp +++ b/ecal/core/src/config/ecal_path_processing.cpp @@ -294,6 +294,15 @@ namespace eCAL ecal_default_paths.emplace_back(eCAL::Config::eCALDataSystemDir()); return ecal_default_paths; } + + bool createEcalDirStructure(const std::string& path_) + { + if (!Util::dirExistsOrCreate(path_)) return false; + + // create also logs directory + const std::string log_path = buildPath(path_, ECAL_FOLDER_NAME_LOG); + return Util::dirExistsOrCreate(log_path); + } } // namespace Util namespace Config @@ -380,15 +389,6 @@ namespace eCAL return buildPath(found_path, config_file_); } - - bool createEcalDirStructure(const std::string& path_) - { - if (!Util::dirExistsOrCreate(path_)) return false; - - // create also logs directory - const std::string log_path = buildPath(path_, ECAL_FOLDER_NAME_LOG); - return Util::dirExistsOrCreate(log_path); - } } // namespace Config } // namespace eCAL