Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid file format when opening multi-part archive #7

Open
cheshire137 opened this issue Jan 22, 2014 · 1 comment
Open

Invalid file format when opening multi-part archive #7

cheshire137 opened this issue Jan 22, 2014 · 1 comment

Comments

@cheshire137
Copy link

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.

@masamitsu-murase
Copy link
Owner

Thank you for your report.

Currently, this library has not supported multi-part archive yet.
Multi-part will be supported by the future version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants