File Lists allow you to iterate over a list of files and complete specific tasks sequentially. Follow the steps below to create a File List from a directory on a SFTP server:
From within the Project Designer page, expand the FTP folder in the Component Library, and then drag the SFTP task to the Project Outline.
On the Basic tab of the SFTP task, specify a value for the SFTP Server:
SFTP Server
A pre-configured SFTP server from the drop-down list.
Click the
Add
button and select the Create a File List menu item.
On the Basic tab of the Create a File list element, specify values for the following attributes:
File List Variable
The name of a variable that will contain the list of files being created.
Number of Files Found Variable
The name of a variable which will contain the number of files found. The variable may be used in subsequent tasks.
Click the
Add
button and select the Add a File Set menu item.
On the Basic tab of the File Set element, specify values for the following attributes:
Base Directory
The directory on the SFTP server that contains the files to list.
Recursive
Specify whether or not to also download files from all sub-folders.