Merge pull request #31562 from neikeq/issue-31549
Make sure '.mono/metadata/' exists before creating file
This commit is contained in:
commit
7d9ae522b4
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,7 @@ using System.Threading.Tasks;
|
||||||
using GodotTools.IdeConnection;
|
using GodotTools.IdeConnection;
|
||||||
using GodotTools.Internals;
|
using GodotTools.Internals;
|
||||||
using GodotTools.Utils;
|
using GodotTools.Utils;
|
||||||
|
using Directory = System.IO.Directory;
|
||||||
using File = System.IO.File;
|
using File = System.IO.File;
|
||||||
using Thread = System.Threading.Thread;
|
using Thread = System.Threading.Thread;
|
||||||
|
|
||||||
|
@ -33,6 +34,9 @@ namespace GodotTools.Ides
|
||||||
|
|
||||||
this.launchIdeAction = launchIdeAction;
|
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...
|
// 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;
|
const FileShare metaFileShare = FileShare.ReadWrite;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue