Skip to content

Commit

Permalink
fix: create config file if not exist before getting data path (#1349)
Browse files Browse the repository at this point in the history
Co-authored-by: vansangpfiev <[email protected]>
  • Loading branch information
vansangpfiev and sangjanai authored Sep 27, 2024
1 parent 08b8841 commit ea74a70
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions engine/utils/file_manager_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit ea74a70

Please sign in to comment.