Description
Checks if a specific file exists in the specified directory. If the file exists, then the 'Yes' branch is executed; otherwise, the 'No' branch is executed.
Parameters
-
Set a value: enables you to directly write a path to the file.
-
Save the previous step result: chooses the previous activity result as a path.
-
Calculate a value: enables you to use available properties and methods to form a path.
A field for optional comments on the activity. The input text is displayed above the activity name on Canvas.
Interaction with folders
This activity can interact with both, files and folders. To select a file, you can use the "Pick" button. To specify the folder path, you need to copy it from the file explorer and paste it to the parameter "Path".
Usage examples
You can use this activity in different situations.
For example, if a project has a settings document for business users, then you may use this activity right at the beginning of your workflow to check the existence of that file. If it does not exist, you can register that in a log file with a corresponding message.
In another scenario, you may want to register the result of your workflow. Using this activity, you can check if there is already a file created for that purpose. In this case, you open the file and add the new information. Otherwise, your workflow can trigger another activity that creates a new file.
All you need to do is tell your bot how to proceed in case of YES and NO situations.