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.
1 parent 242c1b5 commit 1da8dd4Copy full SHA for 1da8dd4
src/c#/GeneralUpdate.Differential/Binary/BinaryHandler.cs
@@ -363,9 +363,17 @@ await Task.Run(() =>
363
}
364
365
366
- File.SetAttributes(_oldfilePath, FileAttributes.Normal);
367
- File.Delete(_oldfilePath);
368
- File.Move(_newfilePath, _oldfilePath);
+ if (File.Exists(_oldfilePath))
+ {
+ File.SetAttributes(_oldfilePath, FileAttributes.Normal);
369
+ File.Delete(_oldfilePath);
370
+ }
371
+
372
+ if (File.Exists(_newfilePath))
373
374
+ File.SetAttributes(_newfilePath, FileAttributes.Normal);
375
+ File.Move(_newfilePath, _oldfilePath);
376
377
});
378
379
0 commit comments