Skip to content

Invalid file format when opening multi-part archive #7

@cheshire137

Description

@cheshire137

I'm trying to open a multi-part 7zip archive. I have tested opening the archive in 7zip in Windows and it opens fine, so the archive is valid.

>> path = 'test-multi.7z.001'
>> File.open(path, 'rb') {|file| SevenZipRuby::Reader.open(file) {|szr| szr.extract(:all) } }
StandardError: Invalid file format. open
  from /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/seven_zip_ruby-1.2.0/lib/seven_zip_ruby/seven_zip_reader.rb:227:in `open_impl'

There are two files, test-multi.7z.001 and test-multi.7z.002. When I extract 001 in Windows in 7zip, it automatically grabs part 002 when it needs it and extracts the whole archive.

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