xcon.Download

Description

This function initiates an asynchronous FTP download. If a download is already taking place on this connection (identified by host, port, user, and password), the transfer is enqueued and commenced once the current transfer is finished. Provide _OnDoneEvent and _OnErrorEvent callback functions to be notified on transfer completion and errors.

Signature

bool xcon.Download (string, string, number)

Parameters

NameTypeMandatory/OptionalDescription

stringMconnection handle

stringMremote file name

numberMlocal file name

Return

TypeDescription
boolinitiation status; true if successful, otherwise NIL.