The NotifyFilter propery is used to specify the types of changes that we want to watch. You can combine the notify filters to watch for one or more types of changes. For example, set the NotifyFilter property to Size if you want to monitor the changes in the file/folder size.
There are many NotifyFilter properties that you can set. Here’s the complete list:
Attributes: The attributes of the file or folder
CreationTime: The time the file or folder was created
DirectoryName: The name of the directory
FileName: The name of the file
LastAccess: The date the file or folder was last opened
LastWrite: The date the file or folder last had anything written to it
Security: The security settings of the file or folder
Size: The size of the file or folder
The default is the bitwise OR combination of LastWrite, FileName, and DirectoryName.