From 879ebf7e3cfbb90b4310ee1387ec56b06aecec10 Mon Sep 17 00:00:00 2001 From: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com> Date: Wed, 15 Oct 2025 10:14:57 +0100 Subject: [PATCH] feat(sdk): align SpecklePathProvider with connector repo (#400) * path provider * tweaks * Align with duplicated class --- src/Speckle.Sdk/Logging/SpecklePathProvider.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Speckle.Sdk/Logging/SpecklePathProvider.cs b/src/Speckle.Sdk/Logging/SpecklePathProvider.cs index 46a47fd0..01b469ce 100644 --- a/src/Speckle.Sdk/Logging/SpecklePathProvider.cs +++ b/src/Speckle.Sdk/Logging/SpecklePathProvider.cs @@ -9,6 +9,8 @@ public static class SpecklePathProvider { private const string APPLICATION_NAME = "Speckle"; + private const string LOG_FOLDER_NAME = "Logs"; + private const string BLOB_FOLDER_NAME = "Blobs"; private const string ACCOUNTS_FOLDER_NAME = "Accounts"; @@ -85,4 +87,7 @@ public static class SpecklePathProvider Directory.CreateDirectory(path); return path; } + + public static string LogFolderPath(string applicationAndVersion) => + EnsureFolderExists(UserSpeckleFolderPath, LOG_FOLDER_NAME, applicationAndVersion); }