Skip to content

Commit

Permalink
Fix createEcalDirStructure
Browse files Browse the repository at this point in the history
  • Loading branch information
Peguen committed Jan 7, 2025
1 parent 7e8765a commit 4a103e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ecal/core/cfg/gen/generate_configuration_yaml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
18 changes: 9 additions & 9 deletions ecal/core/src/config/ecal_path_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 4a103e0

Please sign in to comment.