This is only used to check files in the monitored directories.