Skip to content

Progress issue on multipart RAR archives #100

@DoctorW00

Description

@DoctorW00

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

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions