Skip to content

Commit

Permalink
Merge pull request #5 from dlcs/feature/change_filter
Browse files Browse the repository at this point in the history
Update NativeFileSystemChangeWatcher to filter on LastWrite only
  • Loading branch information
donaldgray authored May 10, 2023
2 parents 86f31bf + a700c8f commit e5e2c84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private FileSystemWatcher CreateFileSystemWatcher(FileCleanupConfiguration confi
{
var watcher = new FileSystemWatcher(config.MountPoint, "*.*");
watcher.InternalBufferSize = config.FileWatcherBufferSize;
watcher.NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.LastAccess;
watcher.NotifyFilter = NotifyFilters.LastWrite;
watcher.IncludeSubdirectories = true;
return watcher;
}
Expand Down

0 comments on commit e5e2c84

Please sign in to comment.