Skip to content

Duplicate file names #342

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

Closed
vovkats opened this issue Oct 27, 2017 · 1 comment
Closed

Duplicate file names #342

vovkats opened this issue Oct 27, 2017 · 1 comment

Comments

@vovkats
Copy link

vovkats commented Oct 27, 2017

@simonoff How can I extract files from archive containing duplicate filenames ? I have two files with different content but the the same filename. After extracting I only have 2 files. May be exist option for overriding duplicating filename?

@vovkats
Copy link
Author

vovkats commented Oct 27, 2017

I have done this by next code:

Zip::InputStream.open(file_name) do |io|
  while (entry = io.get_next_entry)
      p entry.name
      p o.read
   end
end

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

1 participant