The zip_file method zips the supplied path (file or directory). It overwrites the output file only if you set the optional overwrite argument to true.
zip_file( path [, overwrite] )
| Argument | Description | 
|---|---|
| path | (string) The path or filename of the file or folder to zip. | 
| overwrite | (boolean) A boolean that specifies whether to force the creation of the zip file if an output file already exists. The default is false. | 
(Boolean). Returns a Boolean indicating success or failure. On success writes a file called path.zip.
|  |