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);