From b76481bac9587ff70e0044c17c127937471fdfa0 Mon Sep 17 00:00:00 2001 From: Cinka Date: Sat, 15 Mar 2025 22:31:31 +0300 Subject: [PATCH] - fix: creating file if not exist --- Nebula.Shared/Services/FileService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Nebula.Shared/Services/FileService.cs b/Nebula.Shared/Services/FileService.cs index bcc9404..5a6d85e 100644 --- a/Nebula.Shared/Services/FileService.cs +++ b/Nebula.Shared/Services/FileService.cs @@ -22,6 +22,10 @@ public class FileService public FileService(DebugService debugService) { _debugService = debugService; + + if(!Directory.Exists(RootPath)) + Directory.CreateDirectory(RootPath); + ContentFileApi = CreateFileApi("content"); EngineFileApi = CreateFileApi("engine"); ManifestFileApi = CreateFileApi("manifest");