We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 056ed9c commit d8beea5Copy full SHA for d8beea5
1 file changed
FlashpointInstaller/src/Forms/Operate.cs
@@ -255,7 +255,15 @@ await Task.Run(() =>
255
{
256
while (cancelStatus != 2) { }
257
258
- try { Directory.Delete(FPM.DestinationPath, true); } catch { }
+ if (Directory.Exists(FPM.DestinationPath))
259
+ {
260
+ foreach (string file in Directory.EnumerateFiles(FPM.DestinationPath))
261
262
+ try { File.Delete(file); } catch { }
263
+ }
264
+
265
+ try { Directory.Delete(FPM.DestinationPath, true); } catch { }
266
267
});
268
269
TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.NoProgress, FPM.Main.Handle);
0 commit comments