Method: Zip::ZipOutputStream#close

Defined in:
lib/pik/contrib/zip/zip.rb

#closeObject

Closes the stream and writes the central directory to the zip file



942
943
944
945
946
947
948
949
# File 'lib/pik/contrib/zip/zip.rb', line 942

def close
  return if @closed
  finalize_current_entry
  update_local_headers
  write_central_directory
  @outputStream.close
  @closed = true
end