Removed prepended path separator from root folder in Directory Indexer module.

This commit is contained in:
Jamie Sharpe 2020-08-09 12:57:55 +01:00
parent b24065d800
commit 8824835cff

View file

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