File Poller Trigger

The File Poller Trigger polls for files or directories when a change (Create, Write, Rename, Remove, Move file event) is detected in the specified directory. To use this trigger, you simply configure your File Poller TrIgger settings and add it to the trigger pane and create a flow.

Trigger Settings

Field Description
Handler Settings
Polling Directory

The path and name of the directory to watch for the file events.

Include Sub-Directories

When this field is set to true, the trigger includes all sub-directories in the Polling Directory to watch for the file events.

File Filter Files that match the regular expression will be watched. For e.g. enter ^abc[a-zA-Z0-9]*.xml$ to poll the xml files starting with abc.
Polling Interval (in milliseconds)

Interval to watch for files or directory changes without using filesystem events.

Mode

The type of listing you want to retrieve. You can select from the following options:

  • Only Files

  • Only Directories

  • Files and Directories (Default)

Poll File Events

The file poller trigger polls for following events.

  • Create
  • Write
  • Rename
  • Remove
  • Move

Select the checkbox next to these event you want to poll inside the specified directory.

For example: If the Create event is not selected, the newly created files or directories are ignored while polling for any change.

Map to Flow Inputs

This tab allows you to map the trigger output to flow input. The following is the output for the activity.

Output Item Description
action The occurred event to trigger the File Poller activity. The possible values are: Create, Write, Rename, Remove, or Move.
fileMetadata This object contains the fullPath, name, oldPath, size, mode, modTime and isDir.