Watchdog
Monitors a directory and its subdirectories for any new files with the specified extension. When a file is detected, it returns the file's path and executes the specified activities within the loop.
Category: Flow Control & Logic · Group: General · Activity name: Watchdog

Example
with Watchdog("./incoming", ".xlsx", newFileVariable="newFile"):
WriteLine(newFile)
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| Directory Path | string | Yes | The path to the directory to be monitored. | |
| File Extension | string | Yes | The extension of files to be monitored. | |
| New File Path Variable | string | Yes | The variable designated for storing the path to each new file. |
Branches
tasks