@ -85,7 +85,7 @@ std::map<std::string, std::string> read_files_in_dir(const std::string &path) {
struct dirent *de = NULL;
while ((de = readdir(d))) {
if (de->d_type != DT_DIR) {
if (de->d_type == DT_REG) {
ret[de->d_name] = util::read_file(path + "/" + de->d_name);
}