Get File List

The action lists file names within a folder, from the FTP/SFTP server. Displays files name, path, type and size.

FTP connection

For our example we used Rebex.

Step 1:Β  Go to the Credentials Manager section and click Add New.

Step 2:Β  Give your credential a Name* and Description (optional) and click Next step.

Document image

Step 3:Β  Configure the FTP / sFTP connection as needed:

  • Port number* - the port number used by the server.
  • Protocol type - the protocol used depending on the encryption.
  • Directory path - the entry point of the server.
  • Authentication method - here you have the option to use a basic username and password authentication or a user key authentication.
Document image

Step 4:Β  Click Test connection and if successful click Save.

Create the process

Step 1:Β  From the Process Designer section select Create new.

Step 2:Β  Give you process a name.

Step 3:Β  Drag the action Get File List on the canvas and link the action inside you process.

Document image

Step 4:Β  Create the <%ftpinfo%> JSon variable of type list.

Document image

Step 5:Β  Click the Get File List action to access its configurations.

  • Node name* - gives you the option to change the actions name.
  • Select ftp server* - here we will select the connection created in the previous section.
  • Folder path - allows you to select the path to the folder you wish to check.
  • Is it recursive? - we have the ability to choose True or False.
  • File type* - choose the type of files that should be retrieved.
  • Output* - here we will add the variable created at Step 4.
Document image

Step 6:Β  Save, Validate and Run the process.

Step 7:Β  Click Check Instance.

Step 8:Β  Here you have the ability to check the data saved in our variable by clicking it, or to download the data in the form of a JSon file.

Document image


Updated 27 Apr 2022
Did this page help?