Monitors a directory on the server's filesystem for new files using filesystem events. Fires a workflow run each time a new file is detected. Useful for processing files written by other services on the same machine.
local_file_watchThe Local File Watch trigger listens to filesystem events on the server where Flusso is running. When a new file is created in the configured directory, Flusso immediately fires a workflow run with the file's details as output variables. Unlike cloud-based file triggers, this node does not poll โ it reacts to filesystem notifications in near real time.
This is the right trigger when other services on the same server produce output files: a legacy export job writes CSVs to a directory, an FTP server receives incoming uploads, or a script generates reports on a schedule. Instead of wrapping those services in a new integration, you simply point the Local File Watch at the directory and let Flusso react.
The Flusso process must have read access to the configured directory. If the
Move After Processing option is enabled, it also requires write access to
create the processed/ subdirectory.
| Field | Status | Description |
|---|---|---|
| Directory Path | Required | Absolute path on the server, e.g. /var/data/incoming. The Flusso process must have read access to this path. |
| Pattern | Optional | Glob pattern to match, e.g. *.csv. Default: * (all files). |
| Move After Processing | Optional | Toggle. When enabled, move the file to a processed/ subdirectory after the workflow run starts to prevent duplicate triggers. |
Each workflow run triggered by this node receives the following fields describing the newly detected file.
| Field | Type | Description |
|---|---|---|
file.path | string | Absolute path to the new file |
file.name | string | Filename with extension |
file.size | number | File size in bytes |
file.detected_at | string | ISO 8601 timestamp when the file was detected |
Watch /var/exports/ for new .csv files dropped by a legacy system, then parse and import the data.
/var/exports, set Pattern to *.csv, and enable Move After Processing to prevent re-processing.{{ trigger.output.file.path }} in the request body to tell your import service which file to read.{{ trigger.output.file.name }} in the message body.*.csv) to avoid false triggers on .tmp files.