From ea74a705451e5e7ccf3742e9799f5067a6a256ed Mon Sep 17 00:00:00 2001 From: vansangpfiev Date: Fri, 27 Sep 2024 16:06:16 +0700 Subject: [PATCH] fix: create config file if not exist before getting data path (#1349) Co-authored-by: vansangpfiev --- engine/utils/file_manager_utils.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/engine/utils/file_manager_utils.h b/engine/utils/file_manager_utils.h index d849d550c..3dccb042a 100644 --- a/engine/utils/file_manager_utils.h +++ b/engine/utils/file_manager_utils.h @@ -168,9 +168,7 @@ inline config_yaml_utils::CortexConfig GetCortexConfig() { } inline std::filesystem::path GetCortexDataPath() { - // TODO: We will need to support user to move the data folder to other place. - // TODO: get the variant of cortex. As discussed, we will have: prod, beta, nightly - // currently we will store cortex data at ~/cortexcpp + CreateConfigFileIfNotExist(); auto config = GetCortexConfig(); std::filesystem::path data_folder_path; if (!config.dataFolderPath.empty()) {