FileSystemWatcher vs polling to watch for file changes

后端 未结 13 2526
一个人的身影
一个人的身影 2020-11-22 05:44

I need to setup an application that watches for files being created in a directory, both locally or on a network drive.

Would the FileSystemWatcher or p

13条回答
  •  情书的邮戳
    2020-11-22 06:16

    I'd go with polling.

    Network issues cause the FileSystemWatcher to be unreliable (even when overloading the error event).

提交回复
热议问题