You must require 'zip/zipfilesystem' and Zip::ZipFile.open('my.zip') do |zipfile| zipfile.file.rename 'orignal_name.txt', 'new_name.txt' end
And this is it, for more information see the Zip::ZipFileSystem class documentation. Regards. Franco Catena. On Apr 27, 12:12 pm, elioncho <elion...@gmail.com> wrote: > Hello, > > Can anyone help me or give me any clue on how to rename a file (or > folder) inside a zip file without having to unzip it first. I'm trying > to do this using the rubyzip gem without luck. > > Thanks, > > Elías --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---