Skip to content

Commit

Permalink
Fix missing deletion message
Browse files Browse the repository at this point in the history
Fixed deleted directories not being logged in the cli
  • Loading branch information
bfourk authored May 18, 2024
1 parent 9827322 commit 629416f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FileDiff/FileDiff.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 629416f

Please sign in to comment.