seven_zip_ruby icon indicating copy to clipboard operation
seven_zip_ruby copied to clipboard

Invalid file format when opening multi-part archive

Open cheshire137 opened this issue 11 years ago • 1 comments
trafficstars

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.

cheshire137 avatar Jan 22 '14 20:01 cheshire137

Thank you for your report.

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

masamitsu-murase avatar Feb 25 '14 14:02 masamitsu-murase