修复文件内容索引更新时文件过滤判断逻辑的问题;

This commit is contained in:
jixiaoxu 2023-04-21 17:20:31 +08:00
parent 37e3de3cee
commit 12d5e76cc5
1 changed files with 4 additions and 2 deletions

View File

@ -89,8 +89,10 @@ void IndexUpdater::UpdateIndex()
contentDb.removeDocument(file.path());
}
} else if(true == suffixMap[suffix] && !file.isDir()) {
if(FileUtils::isEncrypedOrUnsupport(file.path(), suffix) && (file.isModified() || file.isMoveTo())) {
if(FileUtils::isEncrypedOrUnsupport(file.path(), suffix)) {
if(file.isModified() || file.isMoveTo()) {
contentDb.removeDocument(file.path());
}
continue;
}
qDebug() << "| index:" <<file.path();