From 629416f994721e4f863298c07f15e673c60be1c2 Mon Sep 17 00:00:00 2001 From: bfourk <100809777+bfourk@users.noreply.github.com> Date: Sat, 18 May 2024 22:36:45 +0000 Subject: [PATCH] Fix missing deletion message Fixed deleted directories not being logged in the cli --- FileDiff/FileDiff.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FileDiff/FileDiff.cs b/FileDiff/FileDiff.cs index 964891c..f7d2431 100644 --- a/FileDiff/FileDiff.cs +++ b/FileDiff/FileDiff.cs @@ -261,10 +261,11 @@ public static void Main(string[] args) if (Directory.Exists(NewPath)) { Console.WriteLine("Warn: File with similar name already exists in trash, adding number to beginning"); - Directory.Move(DirPath, Path.Join(GarbagePath,string.Format("{0}-{1}", inc.ToString(), del))); + Directory.Move(DirPath, Path.Join(GarbagePath, string.Format("{0}-{1}", inc.ToString(), del))); } else Directory.Move(DirPath, NewPath); + Console.WriteLine("- {0}", del); } catch (Exception ex) {