Public Access
18 lines
464 B
C#
18 lines
464 B
C#
namespace MeetingAssistant.Workflow;
|
|
|
|
public static class WorkflowRulesPathResolver
|
|
{
|
|
public static string? Resolve(string? configuredPath)
|
|
{
|
|
if (string.IsNullOrWhiteSpace(configuredPath))
|
|
{
|
|
return null;
|
|
}
|
|
|
|
var expanded = Environment.ExpandEnvironmentVariables(configuredPath);
|
|
return Path.IsPathRooted(expanded)
|
|
? Path.GetFullPath(expanded)
|
|
: Path.GetFullPath(expanded);
|
|
}
|
|
}
|