Method SFTPClient():getFile() Foundation
Downloads a file.
:getFile( <cRemoteFile>, [<cLocalFile>], [<bProgressBlock>] ) --> lSuccess
{|nRead, nTotal| ... }
.T. (true) if the download is successful, .F. (false) otherwise.
Downloads a remote file from the SFTP server and writes the content to a local file.
Unlike :get(), the data is read from the server and written to the file holding only one data chunk in memory at a time, thus optimizing memory footprint.
If the remote file does not exist, the operation fails. If a local file with the same name already exists, it is overwritten.
In case of an error condition, use :getLastError() and :getLastMessage() methods to obtain detailed error information.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.