public static string GetPath(InstallationSpecificFoldersEnum serverFolder) { string descr = EnumHelper.GetAssociatedDescription(serverFolder); string path = descr.Replace("/NotVital", ""); if (path == string.Empty) { path = Enum.GetName(serverFolder.GetType(), serverFolder); } string finalPath = Path.Combine(installtionPath, path); PathUtils.TryCreatePath(finalPath); return finalPath; }
private static bool IsVital(InstallationSpecificFoldersEnum serverFolder) { string descr = EnumHelper.GetAssociatedDescription(serverFolder); if (descr.EndsWith("/NotVital")) { return false; } else { return true; } }