File Monitor - Wait
Posted: Mon Jul 02, 2012 4:45 pm
So I have a file monitor process that monitors a folder for new or changed files and then writes a listing of those files to a file called schedules.txt.
The issue I have is this directory has thousands of files sent to it each day. Sometimes the monitor will be adding files to the schedules.txt and before the file list is complete, the workflow of copying them begins. Because of this, the workflow copies everything it has in the original list, but the file monitor overwrites the file with new information. That new information doesnt seem to get processed by the workflow. Then file monitor will overwrite again and the process handles those.
I'd like for that workflow to wait for the file schedules.txt to have not been written to for 1 minute before it begins the rest of the process. I'd also like File Monitor to hold its process until the workflow has completed. Is this possible?
The issue I have is this directory has thousands of files sent to it each day. Sometimes the monitor will be adding files to the schedules.txt and before the file list is complete, the workflow of copying them begins. Because of this, the workflow copies everything it has in the original list, but the file monitor overwrites the file with new information. That new information doesnt seem to get processed by the workflow. Then file monitor will overwrite again and the process handles those.
I'd like for that workflow to wait for the file schedules.txt to have not been written to for 1 minute before it begins the rest of the process. I'd also like File Monitor to hold its process until the workflow has completed. Is this possible?