From f35d1c095dc65844e5334c37a1af90dc792c86d8 Mon Sep 17 00:00:00 2001 From: Daulet Zhanguzin Date: Sat, 19 Aug 2017 20:36:57 -0700 Subject: [PATCH] Fix -includedir parameter handling: match directory names, not directory paths --- FF/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FF/Program.cs b/FF/Program.cs index 2d95c95..d1bc7f3 100644 --- a/FF/Program.cs +++ b/FF/Program.cs @@ -307,7 +307,7 @@ static private void RecurseFiles(String directory) String subDirectory = Path.Combine(directory, w32FindData.cFileName); if (Options.IncludeDirectories) { - if (IsNameMatch(subDirectory)) + if (IsNameMatch(w32FindData.cFileName)) { Interlocked.Increment(ref totalMatches); QueueConsoleWriteLine(subDirectory);