Folders to Watch tab

On the Folders to Watch tab you specify which locations, file types and events to monitor.

Folder(s) to watch

This box holds a list of the folders you want to watch. To add a new folder, type its name (one per line), or use Browse button to add a new folder to the list.

The Test button lists all files matching the File Types to Watch in the Live Log tab.

Network locations

Some network locations will NOT support the commands that File Watcher needs in order to monitor files. If you find that no events ever occur, check the Network or FTP Location -Use Polling check box. File Watcher will take a snapshot of files and re-check every minute.

FTP locations

You can watch an FTP location simply by placing the ftp url into the Folder to Watch list:

ftp://ftp.datamystic.com/bigftp/

or with a username and password

ftp://username:password@ftp.datamystic.com/bigftp/

File Watcher detects FTP urls from the leading ftp:// path, and automatically turns on polling to monitor these files. Processing of subfolders is not supported.

Watch subfolders

When checked, FileWatcher will also watch all subfolders of any folder that you specify. Subfolders are not supported for FTP locations

Process any existing files on Start

When FileWatcher starts watching, it can process any matching files in the list of folders that might have arrived while FileWatcher was not active. This is useful to handle restarts.

Network or FTP Location -Use Polling

If you monitor a Network or FTP location, File Watcher may not be able to detect any changes. This is because the network connector does not fully implement the file event functions (API) required by FileWatcher.

 

To work around this lack of events, check this box. File Watcher will re-examine the target folder every 60 seconds (customizable) to look for changes. Note that you should not specify a folder tree with a huge number of files (e.g. more than 1000), as this is very inefficient to process.

Seconds between polls

The number of seconds between polling attempts, default 60 seconds.

File types to watch (*.* for all)

This box specifies which files to watch. By default all files (*.*) are watched. You can watch multiple file types by separating each with semi-colons e.g. *.txt;*.html;*.xml

Seconds to wait after a new files arrives

This settings allows files that arrive together to be grouped. To process each file individually, type 0.

 

Note that this setting has NOTHING to do with waiting for large files to be completely written – FileWatcher handles this automatically (see Wait For Exclusive File Access above). The intention of this setting is to allow multiple files to be processed together.

Actions to Watch

You can trigger actions based on a number of events

-         New files arriving (once the file has been completely written to disk)

-         Files being updates (again, once the file has been completely written to disk)

-         File deletions

-         File accsss (open) - note that you need to check File last access enabled in the ribbon for this to work

-         Ignore folders – check this box to ignore any changes made to folders. Generally you only need to process files, not folders.

 

Note – if you want to see file deletions, then you must uncheck New Files and File Updates, because otherwise the file deletions are reconciled against the New/Updated file list in order to eliminate files to be processed that actually no longer exist.