Basically, I have a program with multiple filewatchers in it that all connect to different directories over an internal network. If all of the directories exist when the program starts, things go just fine. However, if one of the directories doesn't exist (there are reasons this can happen in my situation) then I run into a bit of an issue.
I have put a try/catch in place to deal with the directory not existing and allowing the program to startup regardless of this problem. However, once the program has started that filewatcher never has a chance to try and connect to the directory again. I am not sure how to make my program monitor the directory without affecting the rest of the code which needs to be running at the same time (the other filewatchers that did connect). I know I could check to see if the directory exists while setting up the filewatcher but I just don't know what to do with that information once I have it. Any suggestions/help would be greatly appreciated.