|
@@ -103,7 +103,7 @@ public static class Program
|
|
|
Console.Write("Path:");
|
|
|
path = Console.ReadLine().Trim() ?? string.Empty;
|
|
|
}
|
|
|
- while (!string.IsNullOrEmpty(path) && !Directory.Exists(path));
|
|
|
+ while (string.IsNullOrEmpty(path) || !Directory.Exists(path));
|
|
|
_logger.Information($"Path: {path}");
|
|
|
}
|
|
|
|
|
@@ -114,7 +114,7 @@ public static class Program
|
|
|
Console.Write("Find:");
|
|
|
word_Find = Console.ReadLine().Trim() ?? string.Empty;
|
|
|
}
|
|
|
- while (!string.IsNullOrEmpty(word_Find));
|
|
|
+ while (string.IsNullOrEmpty(word_Find));
|
|
|
_logger.Information($"Find: {word_Find}");
|
|
|
}
|
|
|
|