Commit 5ccb3d38 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Timepix3EventLoader: fix issue with missing dirent type

parent 1aafe19c
...@@ -48,7 +48,7 @@ void Timepix3EventLoader::initialise(Parameters* par) { ...@@ -48,7 +48,7 @@ void Timepix3EventLoader::initialise(Parameters* par) {
while(entry = readdir(directory)) { while(entry = readdir(directory)) {
// If these are folders then the name is the chip ID // If these are folders then the name is the chip ID
if(entry->d_type == DT_DIR) { if(entry->d_type == DT_DIR || (entry->d_type == DT_UNKNOWN && std::string(entry->d_name).at(0) == 'W')) {
LOG(DEBUG) << "Found directory for detector ID " << entry->d_name; LOG(DEBUG) << "Found directory for detector ID " << entry->d_name;
......
Supports Markdown
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