17 lines
443 B
C#
17 lines
443 B
C#
namespace Pilz.Updating;
|
|
|
|
internal static class MyPaths
|
|
{
|
|
private static string p = string.Empty;
|
|
|
|
public static string GetMyAppDataPath()
|
|
{
|
|
if (string.IsNullOrEmpty(p))
|
|
{
|
|
p = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Pilz.Updater");
|
|
if (!Directory.Exists(p))
|
|
Directory.CreateDirectory(p);
|
|
}
|
|
return p;
|
|
}
|
|
} |