Skip to content

File Repeater

The file repeater will loop through a directory of files and process a number of sub-tasks for each file in the directory.

Settings

Modified Since

Required
The date to use when looping through modified files only. This will update automatically each time the task runs.

Only Modified Files

Required
Set to True to only loop over files created or modified since the date shown in the Modified Since setting. Set to False to loop over every file. Defaults to False.

Recursive

Required
Set to True to loop through all files in sub folders, False will only loop through files in the top level folder. Defaults to False.

Input Directory

Required
Directory to process or loop through.

Search Pattern

Optional
Allows you to specify the type of files to be processed e.g. *.csv

Zynk Settings

See Common Task Settings

Resume Logic

In the event of an error occurring in one of the sub tasks, and the 'Can Resume From Failure' setting is enabled, this task will remember any files that have already been looped over successfully. Then the next time the workflow runs, it will automatically skip the files that have been processed already, and resume from the file that encountered the issue.

Context Variables

The following variables are available to the sub-tasks. To use these variables, reference them in templates asĀ @Context.Current["FullName"], or within the task settings using the Razor option.

  • CreationTime
  • Directory
  • DirectoryName
  • Extension
  • FullName
  • LastAccessTime
  • LastWriteTime
  • Length
  • Name
  • NameWithoutExtension