/// <summary>
        /// Updates the last modified date to the date provided, unless the currently set one is later
        /// </summary>
        /// <param name="lastWriteTimeFromFiles">Latest LastWriteTime of the files scanned</param>
        internal void UpdateLastModifiedDate(DateTime lastWriteTimeFromFiles)
        {
            DateTime newLastModifiedDate = lastWriteTimeFromFiles > LastModTime
                ? lastWriteTimeFromFiles
                : LastModTime;

            // It is the JobDataMap on the JobDetail which is actually stateful
            JobDetailJobDataMap.Put(DirectoryScanJob.LastModifiedTime, newLastModifiedDate);
        }
 /// <summary>
 /// Updates the file list for comparison in next iteration
 /// </summary>
 /// <param name="fileList"></param>
 internal void UpdateFileList(List <FileInfo> fileList)
 {
     JobDetailJobDataMap.Put(DirectoryScanJob.CurrentFileList, fileList);
 }