Directory Listener in C #

Is there a library for listening to the directory? I mean, I have a catalog, and I want to receive information about any changes in it.

For example: when some files are deleted or created in a directory, I want to get information. I do not want to use a timer and check the directory manually to detect any changes.

+8
c #
source share
1 answer

It looks like you are looking for FileSystemWatcher . See the documentation for more information.

+21
source share

All Articles