| 239 | ScanFilesThread::ScanFilesThread() : staticConfig(LibQNapi::staticConfig()) {} |
| 240 | |
| 241 | void ScanFilesThread::run() { |
| 242 | abort = false; |
| 243 | fileList.clear(); |
| 244 | visited.clear(); |
| 245 | |
| 246 | QDir::Filters filters = QDir::AllDirs | QDir::Files | QDir::NoDotAndDotDot | |
| 247 | QDir::Readable | QDir::Hidden; |
| 248 | |
| 249 | if (!followSymLinks) filters |= QDir::NoSymLinks; |
| 250 | |
| 251 | emit scanFinished(doScan(searchPath, filters)); |
| 252 | } |
| 253 | |
| 254 | bool ScanFilesThread::doScan(const QString &path, QDir::Filters filters) { |
| 255 | QString myPath = QFileInfo(path).absoluteFilePath(); |
nothing calls this directly
no outgoing calls
no test coverage detected