qie.countFTPEndpointExplicitTLS¶
Signature: qie.countFTPEndpointExplicitTLS(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.23.0 of Apache Camel. See this KB 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 Explicit TLS.
var fileCount = qie.countFTPEndpointExplicitTLS(
'sftp.example.com', // host
21, // port
'*.txt', // path (pattern to count)
false, // binary
true, // passive
'', // ftp parameters
'interfaceUser', // username
'yourPassword' // password
);