From 7870d2c375be9b9bb0eacb1e68cc5b2e9ab04bf2 Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Tue, 5 Nov 2019 16:18:24 -0500 Subject: [PATCH] feat: Added method for getting a path in the ProgramData directory --- ICD.Common.Utils/PathUtils.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ICD.Common.Utils/PathUtils.cs b/ICD.Common.Utils/PathUtils.cs index b9fbd72..c877b4a 100644 --- a/ICD.Common.Utils/PathUtils.cs +++ b/ICD.Common.Utils/PathUtils.cs @@ -279,6 +279,16 @@ namespace ICD.Common.Utils return Join(ProgramConfigPath, local); } + /// + /// Appends the local path to the program data path. + /// + /// + public static string GetProgramDataPath(params string[] localPath) + { + string local = Join(localPath); + return Join(ProgramDataPath, local); + } + /// /// Returns true if the given path exists. ///