Zip Files in a Folder

http://host/core/startzip?path=directory_path&time=epoch_time
http://host/core/zipstatus?id=zip_id&time=epoch_time

Note: files will be zipped with the following name Tonido_Zip_<zip job id>.zip

Inputs (startzip):

  • path: Path to folder containing contents to zip
  • time: epoch time in seconds

Outputs (startzip):

  • type: startzip
  • result: 1 for success and 0 for fail
  • message: id for zip job

Inputs (zipstatus):

  • id: id for zip job returned by startzip
  • time: epoch time in seconds

Outputs (zipstatus):

  • type: zipstatus
  • result: 1 for finished and 0 for still zipping
  • message: current files that were zipped (files are separated with the following delimiter: nline_)