Link Details

Link 68492 thumbnail
User 236496 avatar

By powerrush
via blog.troyd.net
Published: Mar 01 2008 / 10:57

Free reusable generic Directory Poller utility class for .NET
  • 6
  • 1
  • 1065
  • 77

Comments

Add your comment
User 209827 avatar

evarlast replied ago:

0 votes Vote down Vote up Reply

don't do it this way. Use FileSystemWatcher instead. This capability is built into the framework and is FASTER.

User 236496 avatar

powerrush replied ago:

0 votes Vote down Vote up Reply

Wasn't up to speed on FileSystemWatcher, it would be faster. However, you would still have to write similar code (using FSW) because FileSystemWatcher does not support Regular Expressions.

User 236496 avatar

powerrush replied ago:

1 votes Vote down Vote up Reply

I also forgot to mention that another reason I skimmed over FileSystemWatcher is because I wasn't just looking for the Creation of a file, I was looking for the EXISTENCE of a file.

This is more fail-safe for my needs. For instance, if the FSW wasn't running when the file was created, then the event wouldn't be triggered ever again. I was looking for something more fail safe.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (6)



Voters Against This Link (1)