Changeset View
Changeset View
Standalone View
Standalone View
src/file/unindexedfileiterator.cpp
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | 88 | { | |||
---|---|---|---|---|---|
89 | bool shouldIndexType = m_config->shouldMimeTypeBeIndexed(mimetype); | 89 | bool shouldIndexType = m_config->shouldMimeTypeBeIndexed(mimetype); | ||
90 | if (!shouldIndexType) | 90 | if (!shouldIndexType) | ||
91 | return false; | 91 | return false; | ||
92 | 92 | | |||
93 | QFileInfo fileInfo(filePath); | 93 | QFileInfo fileInfo(filePath); | ||
94 | if (!fileInfo.exists()) | 94 | if (!fileInfo.exists()) | ||
95 | return false; | 95 | return false; | ||
96 | 96 | | |||
97 | if (!fileInfo.isExecutable()) | ||||
98 | return false; | ||||
99 | | ||||
97 | quint64 fileId = filePathToId(QFile::encodeName(filePath)); | 100 | quint64 fileId = filePathToId(QFile::encodeName(filePath)); | ||
98 | Q_ASSERT_X(fileId, "UnIndexedFileIterator::shouldIndex", "file id is 0"); | 101 | Q_ASSERT_X(fileId, "UnIndexedFileIterator::shouldIndex", "file id is 0"); | ||
99 | if (!fileId) { | 102 | if (!fileId) { | ||
100 | return true; | 103 | return true; | ||
101 | } | 104 | } | ||
102 | 105 | | |||
103 | DocumentTimeDB::TimeInfo timeInfo = m_transaction->documentTimeInfo(fileId); | 106 | DocumentTimeDB::TimeInfo timeInfo = m_transaction->documentTimeInfo(fileId); | ||
104 | 107 | | |||
Show All 21 Lines |