Sftp Monitor

You can monitor a remote folder for changes or other criteria.  This task can be used in two ways:
1) If a change is detected in this task, you can run another task, or
2) The Sftp Monitor task can also be embedded within a Chain task and is useful for conditional task processing.

The SFtp Monitor task also outputs a variable called 'TaskTitle::Filenames". This variable contains the list of all files that satisfy the monitoring criteria.  The format of this variable is #file1^#file2^#file3, where file1,file2,file3 are the names of the files that have been modified.  You can use this variable directly as the filename in other copy, ftp, delete tasks to copy/ftp/delete only these files.  This variable is only updated if the filename, filesize, or filedate criteria options are selected.

Directory
Enter the remote folder that you wish to monitor

Filename
Enter the name filter for the files you wish to copy  using the following wildcard rules
This field also supports dynamic variables.  Using dynamic variables, you can select a file based on current date/time in addition to the normal wildcard search

Task To Run
Select the desired task to run if any of the selected criteria are met.  If you want to use this task in a chain for conditional processing, select 'None'.  If the criteria is satisfied, then an exit code = -100 is thrown.  Else, an exit code = 0 is thrown.

Options
The Task will be run if any of the following selected criteria are satisfied.  You can select 1 or more criteria.
1)  Any change is found in the directory since the last run of this task.  This option does not update any of the dynamic variables.
2)  File(s) which satisfy the Filename criteria exists
3)  File(s) which satisfy the Filename criteria as well as file size criteria
4)  File(s) which satisfy the Filename criteria as well as date modification criteria
5)  Total files in directory are greater/less than certain value. This option does not update any of the dynamic variables.

SFtp Profile
Select the SFtp profile for the SFtp server you need to connect to. You should have previously created a SFtp profile using the SFtp Profiles menu item.