Help Centre › Building Processes
This article describes the RPA FTP functionality to list files on a remote server.
For a full list of available functions, please read FTP functions.
Description
The List files function retrieves a list of files and directories at a given path on the remote server.
Setting it up
To use the List files function, follow these instructions:
{{popups:rpas/add:action=ftp-list}}
Once on a process map:
- Navigate to the process where you would like to add the List files function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the FTP List files option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Name | Yes | Text | - | The name of the FTP connection to use |
| Path | No | Text | . | The remote directory path to list |
| Variable | No | Text | files | Variable name to store the file list |
Output variables
| Variable | Type | Description |
|---|---|---|
| {files} | Array | Array of file and directory names at the specified path |
Errors
| Error | Description |
|---|---|
| Connection not found | No connection exists with the specified name |
| Directory not found | The remote directory does not exist |
Tips
- Use '.' for the current working directory on the remote server
- Combine with a loop to process each file in the listing