-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Hey, great project!
Got some issues on multipart RAR archives. The progress (in my case) only shows 1/5 of total (got 5 RAR archives).
I've used your example code from https://github.com/antony-jr/QArchive/tree/master/examples/disk_extractor - extraction always works single and multipart RAR archives. For testing i uses a ~500mb file packed in 5 RAR archives about 100mb each file. In this scenario, the progress counter ends at 20% but 100% was extracted.
Guess the problem could be around
QArchive/src/qarchiveextractor_p.cc
Line 107 in 1467a3e
| qint64 size = archive_entry_size(entry); |
If i use libarchive directly i use a loop to get all the total size of the RAR archive(s).
qint64 totalSize = 0;
while (archive_read_next_header(a, &entry) == ARCHIVE_OK)
{
totalSize += archive_entry_size(entry);
}
qDebug() << "totalSize: " << totalSize;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels