ours
| 386 | |
| 387 | // ours |
| 388 | bool MMCZip::extractFile(QString fileCompressed, QString file, QString target) |
| 389 | { |
| 390 | QuaZip zip(fileCompressed); |
| 391 | if (!zip.open(QuaZip::mdUnzip)) |
| 392 | { |
| 393 | // check if this is a minimum size empty zip file... |
| 394 | QFileInfo fileInfo(fileCompressed); |
| 395 | if(fileInfo.size() == 22) { |
| 396 | return true; |
| 397 | } |
| 398 | qWarning() << "Could not open archive for unzipping:" << fileCompressed << "Error:" << zip.getZipError(); |
| 399 | return false; |
| 400 | } |
| 401 | return MMCZip::extractRelFile(&zip, file, target); |
| 402 | } |
| 403 | |
| 404 | bool MMCZip::collectFileListRecursively(const QString& rootDir, const QString& subDir, QFileInfoList *files, |
| 405 | MMCZip::FilterFunction excludeFilter) { |