in src/Utilities.cs [212:234]
internal static bool PathExists(string input)
{
if (input == null)
{
return false;
}
// The common cases for which there should be no internal exception
if (input.StartsWith("http://", StringComparison.OrdinalIgnoreCase) || input.StartsWith("https://", StringComparison.OrdinalIgnoreCase))
{
return false;
}
try
{
if (File.Exists(input) || Directory.Exists(input))
{
return true;
}
}
catch { }
return false;
}