ours
| 277 | |
| 278 | // ours |
| 279 | bool extractFile(QString fileCompressed, QString file, QString target) |
| 280 | { |
| 281 | // check if this is a minimum size empty zip file... |
| 282 | QFileInfo fileInfo(fileCompressed); |
| 283 | if (fileInfo.size() == 22) { |
| 284 | return true; |
| 285 | } |
| 286 | ArchiveReader zip(fileCompressed); |
| 287 | auto f = zip.goToFile(file); |
| 288 | if (!f) { |
| 289 | return false; |
| 290 | } |
| 291 | auto extPtr = ArchiveWriter::createDiskWriter(); |
| 292 | auto ext = extPtr.get(); |
| 293 | |
| 294 | return f->writeFile(ext, target); |
| 295 | } |
| 296 | |
| 297 | bool collectFileListRecursively(const QString& rootDir, const QString& subDir, QFileInfoList* files, FilterFileFunction excludeFilter) |
| 298 | { |
no test coverage detected