Skip to content

[Bug]: BitArchiveReader.volumesCount() is wrong for ".7z.001" and ".zip.001" #291

@josefschroettle

Description

@josefschroettle

bit7z version

4.0.x

Compilation options

BIT7Z_AUTO_FORMAT

7-zip version

v23.01

7-zip shared library used

7z.dll / 7z.so

Compilers

MSVC

Compiler versions

MSVC 2022

Architecture

x86_64

Operating system

Windows

Operating system versions

Windows 11

Bug description

When BitArchiveReader is created with a file "test.7z.001" with the correct format BitFormat::SevenZip (because Auto is not working) the archive opens and can be listed and extracted which is good.
But BitArchiveReader.volumesCount() returns 1 instead of the correct count 3 in my case which forces me into a workaround to count the files on my own for deletion after unpacking.

Steps to reproduce

Create spanned archive in 7z which will result in ".7z.001", ".7z.002", etc.
Open in BitArchiveReader(lib, ".7z.001", BitFormat::SevenZip)
Call volumesCount()

Expected behavior

volumesCount() returns > 1

Relevant compilation output

volumesCount() == 1

Code of Conduct

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions