mirror of
https://github.com/Syping/ragephoto-cli.git
synced 2025-11-09 13:15:17 +01:00
allow overwriting files at set command
This commit is contained in:
parent
03cb2edbac
commit
bbbc5727e7
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue