From dae2a335c57ca50dfbb27c2aca710e599dd04fd6 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Thu, 22 Aug 2019 14:32:47 +0200 Subject: Make sure '.mono/metadata/' exists before creating file Fixes #31549 --- modules/mono/editor/GodotTools/GodotTools/Ides/GodotIdeServer.cs | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3