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
Name | Description |
---|---|
Input | |
User Name | Provides a valid username to establish a connection with the FTP server. String variables containing the username. |
Password | Provides the password for the username to establish a connection with the FTP server. String variables containing the password. |
Host | Provides a valid host credential to establish a connection with the FTP server. String variables containing the host information. |
Server File Path | Provides 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 Name | Provides 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 | |
Delay | Specifies 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 | |
Result | Outputs 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:
- Drag and drop the "File Exist" activity onto the workflow.
- Configure the properties by specifying the FTP server credentials, server file path for verification, and optional delay.
- Execute the workflow to verify the existence of the specified file on the FTP server.
- 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.