filesystemwatcher problem in c#.net
I have a filesystemwatcher event which watches the path. The problem is when a bulk of files are downloaded into the path where the filesystemwatcher watches, filecreated occurs first then filedeleted occurs which causes all the file to get delete and never the filecreated occur again.
I want to know how to control this condition of filesystemwatcher handling events for files which are getting downloading. I want only o开发者_StackOverflow中文版ne event filecreated/filechanged after the file is finished downloading. And not any other events when it is downloading.
How to achieve this?
Why don't you tell what exactly you want to do may be a simple console app scheduled to run every few minutes will solve your problem.
精彩评论