From bbbc5727e75cfcadacff0ed279937a7f92a17d16 Mon Sep 17 00:00:00 2001 From: Syping Date: Fri, 24 Oct 2025 01:01:01 +0200 Subject: [PATCH] allow overwriting files at set command --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 36e8d02..f5bbb49 100644 --- a/Program.cs +++ b/Program.cs @@ -90,7 +90,7 @@ internal static class Program { String tempFile = Path.GetTempFileName(); photo.SaveFile(tempFile); - File.Move(tempFile, outputFile != null ? outputFile.FullName : photoFile.FullName); + File.Move(tempFile, outputFile != null ? outputFile.FullName : photoFile.FullName, true); } catch (RagePhotoException exception) { Console.Error.WriteLine(exception.Message);