Method: Zip::FileSystem::ZipFileNameMapper#rename

Defined in:
lib/zip/filesystem/zip_file_name_mapper.rb

#rename(filename, new_name, &continue_on_exists_proc) ⇒ Object



47
48
49
50
51
52
53
# File 'lib/zip/filesystem/zip_file_name_mapper.rb', line 47

def rename(filename, new_name, &continue_on_exists_proc)
  @zip_file.rename(
    expand_to_entry(filename),
    expand_to_entry(new_name),
    &continue_on_exists_proc
  )
end