Commit 0dd0764d authored by Biasmey's avatar Biasmey
Browse files

exclude changelist folder

parent ccdaea65
......@@ -59,6 +59,8 @@ namespace NotificationWriterService
_watcherDirectory.Created += (sender, e) =>
{
if (e.FullPath.Contains(ChangeListFolder))
return;
var dateTime = DateTimeOffset.UtcNow;
var files = GetFileList(e.FullPath).ToList();
......@@ -84,6 +86,8 @@ namespace NotificationWriterService
_watcherDirectory.Renamed += (sender, e) =>
{
if (e.FullPath.Contains(ChangeListFolder))
return;
var files = GetFileList(e.FullPath).ToList(); // check this maybe is better move to ProcessQueue
var dateTime = DateTimeOffset.UtcNow;
queue.EnqueueList(files.Select(q => new FileChangeDetail
......@@ -103,7 +107,8 @@ namespace NotificationWriterService
_watcherDirectory.Deleted += (sender, e) =>
{
if (e.FullPath.Contains(ChangeListFolder))
return;
queue.Enqueue(new FileChangeDetail
{
ChangeType = 0,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment