Skip to main content

Each new or changed file in folder

Wait for files (or folders) to appear, change, go or be renamed in a folder and run the nested steps once for each; gives the change, path, name, size and time (UTC, like every DateTime).

Loop type in the Trigger Loop toolkit · id ooa.triggerloop/file_arrives · 10 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
FolderFileYesFolder to watch.
PatternStringNo*Glob for file names, e.g. *.pdf.
Include existingBooleanNofalseAlso handle files already in the folder when the loop starts.
Settle (seconds)NumberNo1Wait until a file has not changed for this long, so half-copied files are skipped until complete.
Poll (seconds)NumberNo1How often to check, in seconds.
Maximum eventsNumberNo0Stop after this many events; 0 = no limit.
Maximum (seconds)NumberNo0Stop waiting after this many seconds in total; 0 = no limit (until the run is stopped or an Exit loop step runs).
EventStringNocreatedWhich change starts the steps: a file that appears (created), changes, goes, is renamed, or any of these.
WatchStringNofilesWatch files, folders, or both.
Include subfoldersBooleanNofalseAlso watch everything in the folders under it.