We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8241a9c + a5543c6 commit ce69e3aCopy full SHA for ce69e3a
csharp/extractor/Semmle.Util/FileUtils.cs
@@ -33,10 +33,7 @@ public static string ConvertToNative(string path)
33
/// <param name="dest">Target file.</param>
34
public static void MoveOrReplace(string src, string dest)
35
{
36
- // Potential race condition here.
37
- // .net offers the facility to either move a file, or to replace it.
38
- File.Delete(dest);
39
- File.Move(src, dest);
+ File.Move(src, dest, overwrite: true);
40
}
41
42
/// <summary>
0 commit comments