#include "user_handler.h" #include user_handler::user_handler() { for (const auto& entry : fs::directory_iterator()) { if (entry.path().extension() == ".json") { this->users.insert(std::pair(fs::path(entry.path()).replace_extension(), new user(entry))); } } }