Giter Site home page Giter Site logo

Comments (3)

rikyoz avatar rikyoz commented on June 2, 2024

Hi!

archive.detectedFormat() returns bit7z::BitFormat::Split which seems to be plausible, however archive.items() holds exactly 1 item entry with not good looking mItemProperties.

This is the expected behavior when the archive format is BitFormat::Split.
7-zip treats split archives as an archive containing only one item: the whole archive.
In fact, if you extract a multi-volume archive using the Split format, you should obtain the full archive.

When I use bit7z::BitFormat::SevenZip to open the file, it works fine, items() returns all entries with valid size/checksum etc values.

This is a recent addition to the library: before the release candidate, you had first to extract the split archive to recreate the whole one on the disk, and then you had to extract this latter.

So, there might be something wrong with bit7z::BitFormat::Split detected formats or I may need to use a different approach?

The recent change in the release candidate is also why the detected format is still BitFormat::Split: before, it was the only format that could handle multi-volume archives (with the exception of RAR ones, which have a different extension though).

However, I'm considering changing the detection behavior since now bit7z can extract multi-volume archives without creating the whole intermediate archive.

...and by the way: shouldn't archive.isMultiVolume() return true in since it return always false. Split RAR files is fine, there it detects it right and isMultiVolume also returns true;

isMultiVolume() queries the IsVolume property as reported by 7-zip.
It should return true for Split and multi-volume RARs, as you said.

However, when opening a multi-volume directly using the SevenZip format, it essentially treats it as a whole 7z archive; this might be the reason for the different result.
I'll need to check if it's possible to make the function return true in this case.

from bit7z.

RScherzer avatar RScherzer commented on June 2, 2024

ah...ok..makes sense, thanks for your support!

from bit7z.

rikyoz avatar rikyoz commented on June 2, 2024

No problem, happy to have helped!

from bit7z.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.