public static bool IsDefaultWebRootContent(string webroot)
{
if (!FileSystemHelpers.DirectoryExists(webroot))
{
// degenerated
return true;
}
var entries = FileSystemHelpers.GetFileSystemEntries(webroot);
if (entries.Length == 0)
{
// degenerated
return true;
}
if (entries.Length == 1 && FileSystemHelpers.FileExists(entries[0]))
{
string hoststarthtml = Path.Combine(webroot, Constants.HostingStartHtml);
return String.Equals(entries[0], hoststarthtml, StringComparison.OrdinalIgnoreCase);
}
return false;
}
}