Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit ea74a70

Browse files
fix: create config file if not exist before getting data path (#1349)
Co-authored-by: vansangpfiev <[email protected]>
1 parent 08b8841 commit ea74a70

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

engine/utils/file_manager_utils.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ inline config_yaml_utils::CortexConfig GetCortexConfig() {
168168
}
169169

170170
inline std::filesystem::path GetCortexDataPath() {
171-
// TODO: We will need to support user to move the data folder to other place.
172-
// TODO: get the variant of cortex. As discussed, we will have: prod, beta, nightly
173-
// currently we will store cortex data at ~/cortexcpp
171+
CreateConfigFileIfNotExist();
174172
auto config = GetCortexConfig();
175173
std::filesystem::path data_folder_path;
176174
if (!config.dataFolderPath.empty()) {

0 commit comments

Comments
 (0)