Commit 318a1edf authored by Lukas Weber's avatar Lukas Weber
Browse files

used dirent instead of c++ filesystem api

parent d513cbd0
#include "runner.h"
#include "merger.h"
#include <fmt/printf.h>
#include <experimental/filesystem>
#include <dirent.h>
......@@ -303,8 +303,11 @@ void runner::merge_measurements() {
const std::string meas_ending = ".meas.h5";
merger m;
std::vector<std::string> meas_files;
for(const auto &f : std::experimental::filesystem::directory_iterator("my_taskdir")) {
std::string fname = f.path();
DIR *taskdir = opendir(my_taskdir.c_str());
struct dirent *result;
while((result = readdir(taskdir)) != NULL) {
std::string fname{result->d_name};
if(, meas_ending.length(), meas_ending) == 0) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment