By powerrush
via blog.troyd.net
Published: Mar 01 2008 / 10:57
Free reusable generic Directory Poller utility class for .NET
By powerrush
via blog.troyd.net
Published: Mar 01 2008 / 10:57
Comments
evarlast replied ago:
don't do it this way. Use FileSystemWatcher instead. This capability is built into the framework and is FASTER.
powerrush replied ago:
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.
powerrush replied ago:
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.
Voters For This Link (6)
Voters Against This Link (1)