ours
| 404 | |
| 405 | // ours |
| 406 | bool extractFile(QString fileCompressed, QString file, QString target) |
| 407 | { |
| 408 | QuaZip zip(fileCompressed); |
| 409 | if (!zip.open(QuaZip::mdUnzip)) { |
| 410 | // check if this is a minimum size empty zip file... |
| 411 | QFileInfo fileInfo(fileCompressed); |
| 412 | if (fileInfo.size() == 22) { |
| 413 | return true; |
| 414 | } |
| 415 | qWarning() << "Could not open archive for unpacking:" << fileCompressed << "Error:" << zip.getZipError(); |
| 416 | return false; |
| 417 | } |
| 418 | return extractRelFile(&zip, file, target); |
| 419 | } |
| 420 | |
| 421 | bool collectFileListRecursively(const QString& rootDir, const QString& subDir, QFileInfoList* files, FilterFunction excludeFilter) |
| 422 | { |
no test coverage detected