Skip to main content

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

The Watchdog activity in the designer

Example

with Watchdog("./incoming", ".xlsx", newFileVariable="newFile"):
WriteLine(newFile)

Inputs

NameTypeRequiredDefaultDescription
Directory PathstringYesThe path to the directory to be monitored.
File ExtensionstringYesThe extension of files to be monitored.
New File Path VariablestringYesThe variable designated for storing the path to each new file.

Branches

  • tasks