C# FileSystemWatcher, How to know file copied completely into the watch folder

后端 未结 7 1191
予麋鹿
予麋鹿 2020-12-06 20:14

I am developing a .net application, where I am using FileSystemWatcher class and attached its Created event on a folder. I have to do action on this event (i.e. copy file to

相关标签:
7条回答
  • 2020-12-06 20:57

    Try to set filters

    myWatcher.NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite;
    
    0 讨论(0)
提交回复
热议问题