Mail is sent when the threshold has been exceeded by monitoring the number of files in a directory