Watch Folder

files · A129 · starter-package 7.0.1

Collect a bounded batch of changes from an approved folder during a fixed interval.

Behavior

Watches a folder for changes. It returns a continuation signal only after the requested operation completes successfully.

Inputs

  • folder - Folder: text (filesystem.folder); required.
  • recursive - Include subfolders: boolean; optional.
  • eventKinds — Event kinds: list; optional.
  • maxEvents — Maximum events: number; optional; whole numbers only.
  • durationMs — Duration (ms): number; optional; whole numbers only.

Outputs

  • events - Events: list; required.
  • count - Count: number; required.
  • fire - becomes true only after the operation completes validly.

Exact settings reference

These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.

IDSettingControlDefaultBounds/options
recursiveInclude subfolderscheckboxfalse—
maxEventsMaximum eventsnumber256—
durationMsDuration (ms)number60000—

What happens when it runs

This block runs directly in the Files & Documents add-on. Connect file, folder, binary, and credential outputs from earlier successful blocks in the same workflow run; the add-on uses those connected resources without exposing local paths.

Connected inputs take precedence over saved settings, including false and empty values. A present malformed connector never falls back to a saved value and stops the workflow with a clear message.

  • The connected resource expired, belongs to another run, or no longer exists. Reconnect the matching output or recreate the item earlier in this run.
  • A native watcher failure stops the workflow with a clear message. Keep the connected folder available, select event kinds supported by the block, and shorten or retry the watch.
  • If an unexpected local problem occurs after valid inputs, retry after closing applications that may hold the file; if it repeats with the same valid inputs, reinstall or update this official add-on.

Every failure stops the workflow at this block. No partial resource output or success Fire is emitted.