Skip to main content

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

NameDescription
Input
File PathEnter 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 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 or arguments containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ExistReturns 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:

  1. Drag and drop the "File Exist" activity onto the workflow.
  2. Configure the properties by specifying the full path of the file to be checked for existence.
  3. Optionally, configure the delay and customize the display name.
  4. 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.