Files
Pilz.Updating/Pilz.Updating/MyPaths.cs
Schedel Pascal d0048e008d more refactoring
2024-06-24 07:49:24 +02:00

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;
}
}