mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
feat: Added method for getting a path in the ProgramData directory
This commit is contained in:
parent
7cf3d18127
commit
7870d2c375
1 changed files with 10 additions and 0 deletions
|
|
@ -279,6 +279,16 @@ namespace ICD.Common.Utils
|
||||||
return Join(ProgramConfigPath, local);
|
return Join(ProgramConfigPath, local);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Appends the local path to the program data path.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static string GetProgramDataPath(params string[] localPath)
|
||||||
|
{
|
||||||
|
string local = Join(localPath);
|
||||||
|
return Join(ProgramDataPath, local);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if the given path exists.
|
/// Returns true if the given path exists.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue