开发者

filesystemwatcher problem in c#.net

开发者 https://www.devze.com 2023-02-02 18:42 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消