diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-08-22 15:26:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-22 15:26:53 +0200 |
commit | 7d9ae522b4ad2c98679dbc34bbb0623137359d5b (patch) | |
tree | 4bf97f2a446c362acd6c52cc9bb502afc18bc31e | |
parent | 1349e0e585bda2f27ce0231b6ed862b0fe6cd3b3 (diff) | |
parent | dae2a335c57ca50dfbb27c2aca710e599dd04fd6 (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.cs | 4 |
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; |