Help Centre › Building Processes
This article describes the RPA FTP functionality to check if a file or directory exists on a remote server.
For a full list of available functions, please read FTP functions.
Description
The Check exists function checks whether a file or directory exists at the specified path on the remote server. Returns a boolean value.
Setting it up
To use the Check exists function, follow these instructions:
{{popups:rpas/add:action=ftp-exists}}
Once on a process map:
- Navigate to the process where you would like to add the Check exists 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 Check exists 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 | Yes | Text | - | The path to check on the remote server |
| Variable | No | Text | exists | Variable name to store the result |
Output variables
| Variable | Type | Description |
|---|---|---|
| {exists} | Boolean | True if the file or directory exists, false otherwise |
Errors
| Error | Description |
|---|---|
| Connection not found | No connection exists with the specified name |
Tips
- Works for both files and directories
- Use before download or delete operations to avoid errors