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 |
File Filter |
Files that match the regular expression will be watched. For example, enter ^abc[a-zA-Z0-9]*.xml$ to poll the xml files starting with abc |
Polling Interval (in milliseconds) | Name of the service defined in the .proto file. You must create one gRPC trigger for any specific .proto file. Any subsequent gRPC triggers using the
same .proto file can select the service and method they need from the dropdown
list. |
Mode |
The type of listing you want to retrieve. You can select from the following options:
|
Poll File Events |
The file poller trigger polls for following events.
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
You can go to this tab to map the trigger output to flow input. The output for the activity is described in the following table.
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 |