Zip:reopen([mode], [level]) method

Closes the zip archive and reopens it using the specified mode and level compression.

Parameters

mode

An optional string that indicate the open mode :

  • "read" : The zip archive is open for reading (the zip archive must exist). It's the default mode.
  • "append" : The zip archive is open for appending (the zip archive must exist).
  • "write" : The zip archive is open for writing (the zip archive is created and overwrites any previous existing archive).

level

An optional number that indicate the compression level, from 0 (no compression) to 10 (maximum compression level), defaulting to 6.

Return value

The function returns no value.