download

The download module allows you to download a file from the target server.

Arguments

  • src: a string that contains the path to the file to be downloaded.
  • dst: a string that contains the path to the destination file on the local machine.

Usage Example

local task = {
    name = "Download a file",
    komandan.modules.download({
        src = "/path/to/remote/file",
        dst = "/path/to/local/file"
    })
}

komandan.komando(host, task)