This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
UpTool2/Installer/PathTool.cs
2020-04-08 16:05:09 +02:00

19 lines
613 B
C#

using System;
using System.IO;
using System.Linq;
namespace Installer
{
internal static class PathTool
{
public static string Dir =>
System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "UpTool2");
public static string TempPath => GetRelative("tmp");
public static string AppsPath => GetRelative("Apps");
public static string InfoXml => GetRelative("info.xml");
public static string GetRelative(params string[] segments) =>
System.IO.Path.Combine(new[] {Dir}.Concat(segments).ToArray());
}
}