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
Entry#unpack_local_entry can't get compressed_size #525
Comments
def get_next_entry
@archive_io.seek(@current_entry.next_header_offset, IO::SEEK_SET) if @current_entry
open_entry
end
def unpack_local_entry(buf)
@header_signature,
@version,
@fstype,
@gp_flags,
@compression_method,
@last_mod_time,
@last_mod_date,
@crc,
@compressed_size, # 0
@size,
@name_length,
@extra_length = buf.unpack('VCCvvvvVVVvv')
end
|
Checkout rubyzip 3.0.0, I get error: Zip::GPFBit3Error: But Zip::File not supprot decrypter, It can be a constant cycle. |
This is partly an issue with zip archives created by Archive on OSX - there's a bit of an explanation here: #510 (comment) We do need to enable reading/writing encrypted zips via |
First, I get a zip file use mac osx, (select 2 file, right-click, select compress).
Second, I use Zip::File open it, It's right. but Zip::InputStream is error(only get one entry).
Because the zip file has a password, I must use Zip::InputStream
ruby 2.6.6p146
rubyzip (2.3.2)
The text was updated successfully, but these errors were encountered: