diff --git a/shared/indexer.cpp b/shared/indexer.cpp index 107156b..7076b13 100644 --- a/shared/indexer.cpp +++ b/shared/indexer.cpp @@ -1,5 +1,6 @@ #include "indexer.h" #include "logger.h" +#include "wildcardmatcher.h" Indexer::Indexer(SqliteDbService &db) { @@ -17,8 +18,14 @@ void Indexer::beginIndexing() this->currentIndexResult.begin = QDateTime::currentDateTime(); QVector dirs; + WildcardMatcher wildcardMatcher; + wildcardMatcher.setPatterns(this->ignorePattern); for(QString &path : this->pathsToScan) { + if(wildcardMatcher.match(path)) + { + continue; + } QFileInfo info{path}; if(info.isDir()) {