Function COMPRESS
Compress given source to different formats.
Example
compress(string format,string source,string target,[boolean includeBaseFolder,[string mode]]):boolean
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
| Name | Type | Required | Description |
|---|---|---|---|
| format | string | Yes | Format to compress (bzip,gzip,tar,tbz (tar bzip),tgz (tar gzip) and zip) |
| source | string | Yes | source file or directory to compress |
| target | string | Yes | name of the target compressed file |
| includeBaseFolder | boolean | No | take the folder or only content of folder |
| mode | string | No | mode of the values |