Skip to content

qie.countFTPEndpointImplicitTLS

Signature: qie.countFTPEndpointImplicitTLS(host, port, path, binary, passive, ftpParameters, userName, password)

Returns: Integer fileCount - the count of files found

Returns the number of files found in the path specified.

Note

QIE uses version 4.22.0 of Apache Camel. (See this article for available parameters).

Parameters

Type Name Description Default
String host hostname or ip address for the ftp server
Integer port the port number to use
String path file path to count files
Boolean binary transfer data using binary protocol
Boolean passive use passive transfer mode (usually true)
String ftpParameters additional custom camel ftp parameters to be used by this connection. (Format: {key}={value}\n{key2}={value2}...)
String userName username to use for this connection
String password password to use for this connection

Example

// Example: count files on an FTP endpoint using Implicit TLS.

var fileCount = qie.countFTPEndpointImplicitTLS(
    'sftp.example.com', // host
    990,                // port (FTP Implicit TLS default)
    '*.txt',            // path (pattern to count)
    false,              // binary
    true,               // passive
    '',                 // ftp parameters
    'interfaceUser',    // username
    'yourPassword'      // password
);