Moo_ZipCompress ( sPath; bTemp; bOverwrite; bFolderName; sPassword );
This function creates/adds to a Zip file.Parameters
Name | Type | Required | Default | Description |
sPath | String | Yes | The input file(s) to be compressed. | |
bTemp | Boolean/String | No | False | If false the ZIP file is created in the same folder as the input file. Can also specify the output file as either a full path or just a filename. |
bOverwrite | Boolean | No | False | Overwrite existing files within the Zip file if they already exist. |
bFolderName | Boolean | No | True | Include the folder name when folders are added. |
sPassword | String | No | Password Protect the Zip archive. |
Return Value
Returns the path to the created Zip file, or an error code.
Notes
Had some big changes in MooPlug Version 0.4.7.
Errors
Error Code | Description |
Moo_ZipCompress|Err_1 | Invalid number of arguments. |
Moo_ZipCompress|Err_2 | Invalid source file input. |
Moo_ZipCompress|Err_3 | Source file doesn't exist. |
Moo_ZipCompress|Err_4 | Output Zip file already exists. |
Moo_ZipCompress|Err_5 | Error creating Zip file. |
Related Functions