New releases file. Updated filtering logic for attributes to prevent duplicate events.
This commit is contained in:
@@ -35,10 +35,10 @@ namespace BodyshopPartner.Utils
|
||||
IncludeSubdirectories = false;
|
||||
// Eliminate duplicates when timestamp doesn't change
|
||||
Filter = "*.env";
|
||||
NotifyFilter = NotifyFilters.FileName | NotifyFilters.LastWrite;
|
||||
//NotifyFilter = NotifyFilters.FileName | NotifyFilters.Size; // The default also has NotifyFilters.LastWrite
|
||||
// NotifyFilter = NotifyFilters.FileName | NotifyFilters.LastWrite;
|
||||
NotifyFilter = NotifyFilters.Attributes; // The default also has NotifyFilters.LastWrite
|
||||
EnableRaisingEvents = true;
|
||||
Created += Watcher_Created;
|
||||
//Created += Watcher_Created;
|
||||
Changed += Watcher_Changed;
|
||||
//Deleted += Watcher_Deleted;
|
||||
//Renamed += Watcher_Renamed;
|
||||
|
||||
Reference in New Issue
Block a user