Thanks to visit codestin.com
Credit goes to github.com

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

fix: correct path to work with data folder structure #1132

Merged
merged 5 commits into from
Sep 6, 2024

Conversation

vansangpfiev
Copy link
Contributor

@vansangpfiev vansangpfiev commented Sep 6, 2024

#1121
Only solved issue for llamacpp on MacOS and Linux/Windows CPU build
Need #1047 to make others work

@vansangpfiev vansangpfiev marked this pull request as ready for review September 6, 2024 06:11
engine/main.cc Outdated
@@ -4,7 +4,7 @@
#include "controllers/command_line_parser.h"
#include "cortex-common/cortexpythoni.h"
#include "utils/archive_utils.h"
#include "utils/config_yaml_utils.h"
// #include "utils/config_yaml_utils.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe remove it?

@@ -13,7 +13,7 @@ struct CortexConfig {
std::string port;
};

const std::string kCortexFolderName = "cortexcpp";
const std::string kCortexFolderName = ".cortexcpp";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, not sure if we want to hide this folder from user.

std::filesystem::path data_folder_path;
if (!config.dataFolderPath.empty()) {
data_folder_path =
std::filesystem::path(config.dataFolderPath) / ".cortexcpp";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since default dataFolderPath is having kCortexFolderName already, do we need to add another .cortexcpp under it?

@vansangpfiev vansangpfiev merged commit 8c06f78 into dev Sep 6, 2024
4 checks passed
@vansangpfiev vansangpfiev deleted the fix/correct-data-folder-path branch September 6, 2024 07:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants