summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-22 15:26:53 +0200
committerGitHub <noreply@github.com>2019-08-22 15:26:53 +0200
commit7d9ae522b4ad2c98679dbc34bbb0623137359d5b (patch)
tree4bf97f2a446c362acd6c52cc9bb502afc18bc31e
parent1349e0e585bda2f27ce0231b6ed862b0fe6cd3b3 (diff)
parentdae2a335c57ca50dfbb27c2aca710e599dd04fd6 (diff)
Merge pull request #31562 from neikeq/issue-31549
Make sure '.mono/metadata/' exists before creating file
-rw-r--r--modules/mono/editor/GodotTools/GodotTools/Ides/GodotIdeServer.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools/Ides/GodotIdeServer.cs b/modules/mono/editor/GodotTools/GodotTools/Ides/GodotIdeServer.cs
index d515254e65..309b917c71 100644
--- a/modules/mono/editor/GodotTools/GodotTools/Ides/GodotIdeServer.cs
+++ b/modules/mono/editor/GodotTools/GodotTools/Ides/GodotIdeServer.cs
@@ -9,6 +9,7 @@ using System.Threading.Tasks;
using GodotTools.IdeConnection;
using GodotTools.Internals;
using GodotTools.Utils;
+using Directory = System.IO.Directory;
using File = System.IO.File;
using Thread = System.Threading.Thread;
@@ -33,6 +34,9 @@ namespace GodotTools.Ides
this.launchIdeAction = launchIdeAction;
+ // Make sure the directory exists
+ Directory.CreateDirectory(projectMetadataDir);
+
// The Godot editor's file system thread can keep the file open for writing, so we are forced to allow write sharing...
const FileShare metaFileShare = FileShare.ReadWrite;