shared: Indexer: Use WildcardMatcher to ignore paths

Bu işleme şunda yer alıyor:
Albert S. 2022-05-31 10:15:02 +02:00
ebeveyn a3666f283e
işleme c2bd1b526b

Dosyayı Görüntüle

@ -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<QString> dirs;
WildcardMatcher wildcardMatcher;
wildcardMatcher.setPatterns(this->ignorePattern);
for(QString &path : this->pathsToScan)
{
if(wildcardMatcher.match(path))
{
continue;
}
QFileInfo info{path};
if(info.isDir())
{