FTP Check exists function

The FTP Check exists function in RPA.

Help CentreBuilding 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:

  1. Navigate to the process where you would like to add the Check exists function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the FTP Check exists option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
NameYesText-The name of the FTP connection to use
PathYesText-The path to check on the remote server
VariableNoTextexistsVariable name to store the result

Output variables

VariableTypeDescription
{exists}BooleanTrue if the file or directory exists, false otherwise

Errors

ErrorDescription
Connection not foundNo connection exists with the specified name

Tips

  • Works for both files and directories
  • Use before download or delete operations to avoid errors

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.