Skip to main content

File Exist

AutomatR.FTP.FileExist

The "File Exist" activity in AutomatR is part of the FTP activities package, allowing automation processes to verify the existence of a specific file on an FTP server. This activity streamlines the process of checking whether a file is available at a specified server path, enhancing the efficiency of automation workflows.

Properties

NameDescription
Input
User NameProvides a valid username to establish a connection with the FTP server. String variables containing the username.
PasswordProvides the password for the username to establish a connection with the FTP server. String variables containing the password.
HostProvides a valid host credential to establish a connection with the FTP server. String variables containing the host information.
Server File PathProvides the server path for the file whose existence you want to verify. For example, "/FileExist/FileExist.doc". String variables containing the server file path.
Miscellaneous
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "File Exist" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. For example, if the delay is 1000 milliseconds or 1 sec, set it to 1.
Output
ResultOutputs a boolean value (True or False) based on whether the specified file exists on the FTP server or not. Boolean variables to store the verification result.

How to use:

  1. Drag and drop the "File Exist" activity onto the workflow.
  2. Configure the properties by specifying the FTP server credentials, server file path for verification, and optional delay.
  3. Execute the workflow to verify the existence of the specified file on the FTP server.
  4. The result, indicating whether the file exists (True) or not (False), is stored in the specified Boolean variable.

Example: Consider an example where the "File Exist" activity is used to check the existence of a file named "FileExist.doc" on the FTP server:

File Exist:
Delay: 0
Password: "your_password"
User Name: "your_username"
Host: "ftp.yourftpserver.com"
Server File Path: "/FileExist/FileExist.doc"
Result: isFileExist

In this example, the activity verifies whether the file "FileExist.doc" exists at the specified server path on the FTP server. The result of the verification (True or False) is stored in the Boolean variable "isFileExist" for further handling in the workflow.