<< back to sysax.com Product page |
Files and folders can be compressed using the ftpcompress command. The name string specifies the file or folder to compress. If compression is successful, the output name variable contains the name of the compressed file and the ftpresult
predefined status flag is set to the predefined constant success
.
Exhibit 5.11. Syntax of command for compressing local files and folders
ftpcompress <name string>, <output name variable>; |
Exhibit 5.12. Examples for using the command for compressing local files and folders
ftpcompress "www_folder", ~zip_file_name; #compress a folder and all its contents ftpcompress "index.txt"; #compress a file |
A compressed file can be uncompressed using the ftpuncompress command. The name string specifies the file to be uncompressed. The zip, gz, tar.gz, and tgz compressed file formats are supported. The ftpresult
predefined status flag is set to the predefined constant success
if the command completed successfully.
Exhibit 5.13. Syntax of command for uncompressing local files and folders
ftpuncompress <name string>; |
Exhibit 5.14. Examples for using the command for uncompressing local files and folders
ftpuncompress "in22.tar.gz"; #uncompress a tar.gz file ftpuncompress "dw441.zip"; #uncompress a zip file |