From 6d5e8c14857962df5998f1b352b9090d44d2dd7f Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 29 May 2025 22:49:41 +1200 Subject: [PATCH] :-'Generic Commit' --- src/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 59102ec..bc3f1ea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,7 +26,7 @@ std::filesystem::path get_config_path() { std::vector config_paths = { "/data/sos_config.json", _home / ".config/simple_object_storage/config.json", - _exe / ".." / ".test-docker" / "config.json" + _exe / ".." / ".test" / "config.json" }; for (const auto& path : config_paths) { @@ -57,6 +57,11 @@ bool initialize_server() { std::cout << "Starting server at " << config.host << ":" << config.port << std::endl; std::cout << "Object store path: " << config.object_store_path << std::endl; + if (!std::filesystem::exists(config.object_store_path)) { + std::cout << "Object store path does not exist: " << config.object_store_path << std::endl; + return false; + } + g_server = std::make_unique(config); // Start server in a separate thread