diff --git a/OpenpilotToolkit/Program.cs b/OpenpilotToolkit/Program.cs index b5b3435..1a60de4 100644 --- a/OpenpilotToolkit/Program.cs +++ b/OpenpilotToolkit/Program.cs @@ -91,7 +91,11 @@ public static int Main(string[] args) try { - Directory.Delete(tempPath, true); + if (Directory.Exists(tempPath)) + { + Directory.Delete(tempPath, true); + } + Directory.CreateDirectory(tempPath); } catch (Exception e)