Skip to content

Commit

Permalink
Actually, it's probably a good idea to log when we ignore a path unex…
Browse files Browse the repository at this point in the history
…pectedly

Relates to #256
  • Loading branch information
canton7 committed Apr 26, 2016
1 parent ffd5574 commit c170fa0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SyncTrayzor/Services/FileWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ private void RecordPathChange(string path, bool pathExists)

// https://msdn.microsoft.com/en-us/library/dd465121.aspx
if (!path.StartsWith(this.Directory, StringComparison.OrdinalIgnoreCase))
{
logger.Warn($"Ignoring change to {path}, as it isn't in {this.Directory}");
return;
}

var subPath = path.Substring(this.Directory.Length);

Expand Down

0 comments on commit c170fa0

Please sign in to comment.