| 118 | } |
| 119 | |
| 120 | QStringList FileList::applyExcludeList() const |
| 121 | { |
| 122 | const PathMatch pathMatch(toStdStringList(mExcludedPaths), QDir::currentPath().toStdString()); |
| 123 | |
| 124 | QStringList paths; |
| 125 | for (const QFileInfo& item : mFileList) { |
| 126 | if (pathMatch.match(QDir::fromNativeSeparators(item.filePath()).toStdString())) |
| 127 | continue; |
| 128 | QString canonical = QDir::fromNativeSeparators(item.canonicalFilePath()); |
| 129 | if (!pathMatch.match(canonical.toStdString())) |
| 130 | paths << canonical; |
| 131 | } |
| 132 | return paths; |
| 133 | } |
nothing calls this directly
no test coverage detected