20 lines
428 B
C#
20 lines
428 B
C#
namespace ZA.CoreService.ESBCertificateManager.Services;
|
|
|
|
public static class PathResolver
|
|
{
|
|
public static string ResolvePath(string path)
|
|
{
|
|
if (string.IsNullOrWhiteSpace(path))
|
|
{
|
|
return path;
|
|
}
|
|
|
|
if (Path.IsPathRooted(path))
|
|
{
|
|
return Path.GetFullPath(path);
|
|
}
|
|
|
|
return Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, path));
|
|
}
|
|
}
|