Skip to content

Commit

Permalink
Exclude log files #1300
Browse files Browse the repository at this point in the history
  • Loading branch information
joeloff committed Nov 9, 2018
1 parent b77ab38 commit 38f4c57
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/SignCheck/SignCheck/SignCheck.cs
Expand Up @@ -277,6 +277,17 @@ private List<string> GetInputFilesFromOptions()
DownloadFilesAsync(downloadFiles).Wait();
}

// Exclude log files in case they are created in the folder being scanned.
if (!String.IsNullOrEmpty(Options.ErrorLogFile))
{
inputFiles.Remove(Path.GetFullPath(Options.ErrorLogFile));
}

if (!String.IsNullOrEmpty(Options.LogFile))
{
inputFiles.Remove(Path.GetFullPath(Options.LogFile));
}

return inputFiles;
}

Expand Down

0 comments on commit 38f4c57

Please sign in to comment.