mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Removed prepended path separator from root folder in Directory Indexer module.
This commit is contained in:
parent
b24065d800
commit
8824835cff
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ public override string Index(string folderPath)
|
||||||
sbHtmlIndex.AppendLine(HtmlHelper.StartTag("body"));
|
sbHtmlIndex.AppendLine(HtmlHelper.StartTag("body"));
|
||||||
|
|
||||||
folderPath = Path.GetFullPath(folderPath).TrimEnd('\\');
|
folderPath = Path.GetFullPath(folderPath).TrimEnd('\\');
|
||||||
prePathTrim = folderPath.LastIndexOf(@"\");
|
prePathTrim = folderPath.LastIndexOf(@"\") + 1;
|
||||||
|
|
||||||
FolderInfo folderInfo = GetFolderInfo(folderPath);
|
FolderInfo folderInfo = GetFolderInfo(folderPath);
|
||||||
folderInfo.Update();
|
folderInfo.Update();
|
||||||
|
|
Loading…
Reference in a new issue