Fixed additional path separator bug in Directory Indexer.

This commit is contained in:
Jamie Sharpe 2020-08-09 12:45:45 +01:00
parent 999b09dbf0
commit b24065d800

View file

@ -53,6 +53,7 @@ public override string Index(string folderPath)
sbHtmlIndex.AppendLine(HtmlHelper.EndTag("head"));
sbHtmlIndex.AppendLine(HtmlHelper.StartTag("body"));
folderPath = Path.GetFullPath(folderPath).TrimEnd('\\');
prePathTrim = folderPath.LastIndexOf(@"\");
FolderInfo folderInfo = GetFolderInfo(folderPath);