This activity monitors the selected folder and executes other actions when a specific file appears in this folder or disappears from it. If the set event happened, then Yes branch will be executed. Otherwise, No branch will be executed.
A good usage of this activity is to perform some actions with the file immediately after it appears in the folder. Here is how it can look like.
In this example we wait for the file to appear, write some text to it and then move it to another folder
There are two main required parameters: Folder to monitor the event and Event.
Folder to monitor the event defines the folder where the file is expected to appear or disappear.
Folder to monitor the event parameter
Event defines what exactly should happen: other action can be triggered either if the file has appeared or disappeared.
Selecting the type of event
It also includes two other options. You can set the activity to trigger if any kind of file appears in the folder, or define a specific file.
Also note that Wait for any file to appear and Wait for a specific file to appear options return a complete path to the file.
Radio buttons in the Event parameter
Path to the appeared file
If you select the Wait for a specific file to appear option, you will be able to set a specific file name or extension. Check one of these options or both according to the task.
Here it is possible to set a specific file name
It is also possible to set its extension
If Disappearance event was selected, the options will look similarly. It is possible to either trigger the other actions when the folder becomes completely empty or when only a specific file disappears. It is also possible to set the name and/or extension of this file.
If the Wait for the folder to become empty option is selected, then the activity will not return anything. If the Wait for a specific file to disappear option is enabled, then the activity will return the name of this file.
Disappearance event options
The last option in this activity is Stop waiting (in seconds). Here you can set the awaiting time for file to appear or disappear. After this time No branch will be executed.
Setting the awaiting time