mirror of
https://github.com/SabreTools/NDecrypt.git
synced 2026-07-08 18:06:38 +00:00
Always overwrite
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user