File Exist
AutomatR.DefaultActivities.FileAndFolder.FileExist
The "File Exist" activity in AutomatR is designed to verify whether a specified file exists at a given location. This activity helps streamline automation workflows by allowing users to check for the presence of a file before proceeding with subsequent actions.
Properties
Name | Description |
---|---|
Input | |
File Path | Enter the full path of the file on your local drive, including the filename, that needs to be verified for existence. Example: "C:\sample files\workbook.csv" . String variables containing the file path. |
Misc | |
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 or arguments containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Exist | Returns the result as either true or false based on the existence of the specified file. Boolean variables or arguments to store the result. |
How to use:
- Drag and drop the "File Exist" activity onto the workflow.
- Configure the properties by specifying the full path of the file to be checked for existence.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to check if the specified file exists.
Example: Consider an example where the "File Exist" activity is used to check if a file named "workbook.csv" exists in the "C:\sample files\" directory:
File Exist:
Display Name: "Check Workbook File"
File Path: "C:\sample files\workbook.csv"
Exist: isFileExist
In this example, the activity checks whether the "workbook.csv" file exists. The result of the check (true or false) is stored in the Boolean variable "isFileExist" for further handling in the workflow. Adjust the file path as needed for your workflow.