Working.
This commit is contained in:
@@ -79,14 +79,12 @@ bool Server::validate_write_request(const httplib::Request &req, httplib::Respon
|
||||
|
||||
Server::Server(const ServerConfig& config)
|
||||
: config_(config), running_(false) {
|
||||
// Ensure object store directory exists
|
||||
try {
|
||||
std::filesystem::create_directories(config_.object_store_path);
|
||||
} catch (const std::filesystem::filesystem_error& e) {
|
||||
std::cerr << "Failed to create object store directory: " << config_.object_store_path << " - " << e.what() << std::endl;
|
||||
|
||||
if (!std::filesystem::exists(config_.object_store_path)) {
|
||||
std::cerr << "Object store directory does not exist: " << config_.object_store_path << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Initialize the database
|
||||
if (!init_db()) {
|
||||
// Error already printed in init_db
|
||||
|
Reference in New Issue
Block a user