Function to check whether the specified zip method is a supported zip method. This function is an internal function used by the methods File.zip() and Folder.zip().
The function validZipMethod() is located in the file zip.jsxinc.
Valid zip methods are:
| METHOD | MEANING |
|---|---|
| tz7b | 7z format |
| tgzip | GZIP format |
| tzip | ZIP format |
| tbzip2 | BZIP2 format |
| tiso | ISO format |
| tudf | UDF format |
Usage
var zipmethod = "tzip";
if(validZipMethod(zipmethod))
file.zip("myarchive.zip", zipmethod, 5, "a");Parameters
| Parameter | Data type | Required | Description |
|---|---|---|---|
| method | String | ![]() |
The zip method to check. |
Return values
| Value | Meaning |
|---|---|
| true | The method is a valid zip method. |
| false | The method is not a valid zip method. |

