Folder Exist
AutomatR.DefaultActivities.FileAndFolder.FolderExist
The "Folder Exist" activity in AutomatR is designed to verify the existence of a specified folder path. This activity aids in automation workflows by allowing users to check whether a particular folder is present before proceeding with subsequent actions.
Properties
Name | Description |
---|---|
Input | |
Folder Path | Provide the full path of the folder for which you want to verify the existence. Example: "D:\Folder\FolderExist" . String variables containing the folder 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 "Folder 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 folder path. Boolean variables or arguments to store the result. |
How to use:
- Drag and drop the "Folder Exist" activity onto the workflow.
- Configure the properties by specifying the full path of the folder to be checked for existence.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to check if the specified folder exists.
Example: Consider an example where the "Folder Exist" activity is used to check if a folder named "FolderExist" exists in the "D:\Folder\" directory:
Folder Exist:
Display Name: "Check Folder Existence"
Folder Path: "D:\Folder\FolderExist"
Exist: isFolderExist
In this example, the activity checks whether the "FolderExist" folder exists. The result of the check (true or false) is stored in the Boolean variable "isFolderExist" for further handling in the workflow. Adjust the folder path as needed for your workflow.