in src/PSDocs.Azure/Configuration/PSDocumentOption.cs [80:87]
internal static string GetRootedBasePath(string path)
{
var rootedPath = GetRootedPath(path);
if (rootedPath.Length > 0 && IsSeparator(rootedPath[rootedPath.Length - 1]))
return rootedPath;
return File.Exists(rootedPath) ? rootedPath : string.Concat(rootedPath, Path.DirectorySeparatorChar);
}