Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 43fb5a5

Browse files
Sébastien GeiserSébastien Geiser
Sébastien Geiser
authored and
Sébastien Geiser
committed
Overwrites destination file if it exists
Ensures the destination file is overwritten with the source file when copying, preventing issues with stale or outdated copies.
1 parent e2b1d28 commit 43fb5a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎RegexDialog/Utils/PotentiallyLockedFileOpener.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static string MakeCopyIfLocked(this string sourceFile)
1212

1313
if (!File.Exists(destinationFile) || File.GetLastWriteTime(sourceFile) != File.GetLastWriteTime(destinationFile))
1414
{
15-
File.Copy(sourceFile, destinationFile);
15+
File.Copy(sourceFile, destinationFile,true);
1616
}
1717

1818
return destinationFile;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /