Always overwrite

This commit is contained in:
Matt Nadareski
2025-09-06 19:35:51 -04:00
parent e8a0d706de
commit 9e9efaf491
2 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ namespace NDecrypt.Core
{
// If the output is provided, copy the input file
if (output != null)
File.Copy(input, output);
File.Copy(input, output, overwrite: true);
else
output = input;
@@ -79,7 +79,7 @@ namespace NDecrypt.Core
{
// If the output is provided, copy the input file
if (output != null)
File.Copy(input, output);
File.Copy(input, output, overwrite: true);
else
output = input;

View File

@@ -48,7 +48,7 @@ namespace NDecrypt.Core
{
// If the output is provided, copy the input file
if (output != null)
File.Copy(input, output);
File.Copy(input, output, overwrite: true);
else
output = input;
@@ -467,7 +467,7 @@ namespace NDecrypt.Core
{
// If the output is provided, copy the input file
if (output != null)
File.Copy(input, output);
File.Copy(input, output, overwrite: true);
else
output = input;