File trigger

Description

Waits for a file to appear or disappear in the monitored folder.

When the event happens, then "Yes" branch is executed. Waiting time can be limited, so if the event doesn't happen within waiting time, "No" branch will be executed.

Parameters

Folder to monitor the event

  1. Set a value: set a path to a folder.

  2. Save the previous step result: takes the previous activity result as a value.

  3. Calculate a value: use JS to calculate the value.

Event

Select the type of event to monitor for: appearance or disappearance.

Appearance

  • Wait for any file to appear: any file that appears in the folder will run the trigger.

  • Wait for a specific file to appear: only specific files will run the trigger.

    1. File name contains:

      1. Set a value: set the keyword.

      2. Save the previous step result: takes the previous activity result as a value.

      3. Calculate a value: use JS to calculate the value.

    2. File has extension: only files with specified extension will run the trigger.

Disappearance

  • Wait for the folder to become empty: Trigger will run when folder become completely empty.

  • Wait for a specific file to disappear: only specific files will run the trigger.

    1. File name contains:

      1. Set a value: set the keyword.

      2. Save the previous step result: takes the previous activity result as a value.

      3. Calculate a value: use JS to calculate the value.

    2. File has extension: only files with specified extension will run the trigger.

Stop waiting

Set the limit of waiting time in seconds. If no event happen within the waiting time, the activity will execute 'No' branch.

Usage Examples

This activity allows to build robots that process files in a folder immediately after file was added. Basic workflow example is below: