Add config for file reader to stop when directory is empty.
Brought to you by:
jackkane
In some circumstances we have a requirement to read a directory of files, then stop when the directory is empty. In this case a config entry exitWhenEmpty would be helpful. Currently, the client continues to wait for more files to be placed in the directory.