publish
plugins.it2be_ftp.FTPSclient info


Servoy Properties Summary
Boolean enterLocalActiveMode
String host
Boolean implicit
Boolean isConnected
String password
Number port
String protocol
Number timeout
String userName


Servoy Methods Summary
Boolean cd( String )
Boolean connect( )
Boolean connect( Boolean )
Boolean disconnect( )
void get( String, String )
String getStatus( )
String getWorkingPath( )
Array<Object> list( )
Array<Object> list( String )
Boolean mkdir( String )
Boolean mkdirs( String )
Boolean mv( String, String )
void put( String, String )
Boolean rm( String )
void setReplyInformationMethod( Function )


Servoy Properties Details


enterLocalActiveMode
Boolean  enterLocalActiveMode
Get/Set the mode of the connection to active or passive (default).
Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


host
String  host
Get/Set the name of the host.
Returns
String  host String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


implicit
Boolean  implicit
Get/Set to implicit configuration.
Returns
Boolean  implicit boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


isConnected
Boolean  isConnected
Check that there is a connection.
Returns
Boolean  connected boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


password
String  password
Get/Set the password.
Returns
String  password String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


port
Number  port
Get/Set the port.
Returns
Number  port int

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


protocol
String  protocol
Get/Set the protocol (SSL=default or TSL).
Returns
String  protocol String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


timeout
Number  timeout
Get/Set the timeout (in milliseconds, -1 is default).
Returns
Number  timeout int

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


userName
String  userName
Get/Set the username.
Returns
String  username String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}

Servoy Methods Details


cd
Boolean  cd( String )
Change to another directory.
Parameters
String  path  the path

Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


connect
Boolean  connect( )
'Build' the connection (Don't forget to disconnect), optionally set the active mode to true (default is passive).
Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


connect
Boolean  connect( Boolean )
'Build' the connection (Don't forget to disconnect), optionally set the active mode to true (default is passive).
Parameters
Boolean  localActiveMode  the local active mode

Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


disconnect
Boolean  disconnect( )
'Build' the connection (Don't forget to disconnect), optionally set the active mode to true (default is passive).
Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


get
void  get( String, String )
Get a file.
Parameters
String  remotePath  the remote path
String  localPath  the local path

Returns
void  

Supported Clients
SmartClient, WebClient, NGClient

Sample
// retrieve a document from the server and write it under the designated name
// the first entry is the remote file
// the second entry is the local (new) file name
ftpClient.get("remoteFile", "localFile");


getStatus
String  getStatus( )
Get the status of the connection.
Returns
String  status String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


getWorkingPath
String  getWorkingPath( )
Returns the absolute path name of the current remote working directory.
Returns
String  path String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


list
Array<Object>  list( )
Get a list (array) of FTPSFiles.
Returns
Array<Object>  files Object[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


list
Array<Object>  list( String )
Get a list (array) of FTPSFiles.
Parameters
String  path  the path

Returns
Array<Object>  files Object[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


mkdir
Boolean  mkdir( String )
Creates a directory.
Parameters
String  directory  the directory

Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


mkdirs
Boolean  mkdirs( String )
Creates a path.
Parameters
String  path  the path

Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


mv
Boolean  mv( String, String )
Rename a file on the remote computer.
Parameters
String  oldName  the old name
String  newName  the new name

Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


put
void  put( String, String )
Put a file.
Parameters
String  localPath  the local path
String  remotePath  the remote path

Returns
void  

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Put a file.
// send a document to the server and write it under the designated name
// the first entry is the local file
// the second entry is the remote (new) file name
ftpClient.put("localFile", "remoteFile");


rm
Boolean  rm( String )
Delete a file.
Parameters
String  fileName  the file name

Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}


setReplyInformationMethod
void  setReplyInformationMethod( Function )
When you work with the server replies this method will receive an array of reply strings.
Parameters
Function  callback  the callback method

Returns
void  

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Create a client for the FTPS connection
var vClient = plugins.it2be_ftp.createFTPSClient("host", "username", "password");

// 'Build' the connection and when the connection returns true
// start executing the rest of the code
if (vClient.connect()) {
// Check the status of the connection
application.output(vClient.getStatus());

// Create a list (array) of FTPSFiles
var vList = vClient.list();

// Loop through the FTPSFiles
for (var vIndex = 0 ; vIndex < vList.length ; vIndex++) {
// Retrieve the file at the selected index
var vFile = vList[vIndex];

// Output the name, size and timestamp of the FTPSFile
application.output(vFile.name + " - " + vFile.size + " - " + vFile.timeStamp);

// When the FTPSFile is of file type retrieve the data for it
// Here you could create a method to loop through the folder if
// the file type is a folder
if (vFile.isFile) {
vClient.get(vFile.name, "path/" + vFile.name);
}
}

// Disconnect the client
application.output(vClient.disconnect());
}