asyncFTPGet

Retrievesa file from FTP server.

Syntax

ogscript.asyncFTPGet (host, port, username, password, srcPath, srcName, binary, destFilePath or null, callback);

Parameters

Parameter

Type

Required

Description

host

String

Yes

The host name of the source computer, from which the file is to be retrieved

port

Integer

Yes

The port number required to access the source computer.

username

String

Yes

The username required to log onto the source computer.

password

String

Yes

The password required to log onto the source computer.

srcPath

String

No

The directory path where the source file is located.

srcName

String

Yes

The name of the file to be retrieved.

binary

Boolean

Yes

Specifies the transfer mode.  When true, binary transfer is used.

When false, ASCII transfer is used.

destFilePath or null

String

No

The directory path where the file is to be saved on the local computer.

If null, the file is saved in the same directory as the panel.

callback

function reference

No

The callback is called when the operation is complete, whether or not the operation is successful.

Returns

N/A

Example

Coming soon.