Skip to content

example_recursive will lost some special characters #296

Closed
@EagleSHCN

Description

@EagleSHCN

I've run the example_recursive with some binary files , but after extract I found some files will lost special characters ( for example 0x1a is lost at file end ) .

Modify
def put_into_archive(disk_file_path, io, zip_file_path) io.get_output_stream(zip_file_path) do |f| f.write(File.open(disk_file_path, 'rb').read) end end

to
def put_into_archive(disk_file_path, io, zip_file_path) io.add(zip_file_path, disk_file_path) end

could fix this issue .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions