FileSystemWatcher vs Polling to watch for changes

Posted by Jon Tackabury on Stack Overflow See other posts from Stack Overflow or by Jon Tackabury
Published on 2008-10-27T14:05:38Z Indexed on 2010/04/03 7:43 UTC
Read the original article Hit count: 676

Filed under:
|
|

I need to setup an application that watches for files being created in a folder (locally or on a network drive) and I was wondering if anyone has any thoughts on whether the FileSystemWatcher or polling on a timer would be the best option. I have used both methods in the past, but not extensively. Have you run into any issues (performance, reliability... etc) with either method? I know there isn't a "right way" to do this, I'm just looking opinions.

© Stack Overflow or respective owner

Related posts about c#

Related posts about filesystemwatcher