Skip to content

Commit

Permalink
Utils: Add optional recursion for file system iteration
Browse files Browse the repository at this point in the history
Change-Id: Icded897b129aebd7132376cff55717e16dffc040
Reviewed-by: Eike Ziller <[email protected]>
  • Loading branch information
hjk authored and h4tr3d committed Jan 25, 2022
1 parent 46e623f commit e7f3518
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fileapiparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,10 @@ FilePath FileApiParser::scanForCMakeReplyFile(const FilePath &buildDirectory)
if (!replyDir.exists())
return {};

const FilePaths entries = replyDir.dirEntries({"index-*.json"}, QDir::Files, QDir::Name);
const FilePaths entries = replyDir.dirEntries({"index-*.json"},
QDir::Files,
QDirIterator::NoIteratorFlags,
QDir::Name);
return entries.isEmpty() ? FilePath() : entries.first();
}

Expand Down

0 comments on commit e7f3518

Please sign in to comment.