diff --git a/Switch_Toolbox_Library/IO/FlatBuffer/FlatBufferConverter.cs b/Switch_Toolbox_Library/IO/FlatBuffer/FlatBufferConverter.cs index 8e76a263..8589e936 100644 --- a/Switch_Toolbox_Library/IO/FlatBuffer/FlatBufferConverter.cs +++ b/Switch_Toolbox_Library/IO/FlatBuffer/FlatBufferConverter.cs @@ -128,6 +128,9 @@ namespace Toolbox.Library.IO private static string GenerateBinFrom(T obj, string fbs) { + if (!Directory.Exists(FlatPath)) + Directory.CreateDirectory(FlatPath); + var fbsName = fbs + ".fbs"; var jsonName = fbs + ".json"; var text = WriteJson(obj);