1
0
Fork 0

Bugfix: No '/' prefixed to directory names in DisplayName

This commit is contained in:
Starbeamrainbowlabs 2016-08-10 19:04:53 +01:00
parent 1d60b9b085
commit 9adadd491d
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ namespace GalleryShare.RequestRouter
await xmlData.WriteAttributeStringAsync(null, "Type", null, "Directory");
await xmlData.WriteElementStringAsync(null, "Name", null, escapePath("/" + directoryName.Substring(parentServer.ServingDirectory.Length)));
await xmlData.WriteElementStringAsync(null, "DisplayName", null, directoryName.Substring(parentServer.ServingDirectory.Length));
await xmlData.WriteElementStringAsync(null, "DisplayName", null, "/" + directoryName.Substring(parentServer.ServingDirectory.Length));
await xmlData.WriteElementStringAsync(null, "ItemCount", null, Directory.GetFileSystemEntries(directoryName).Length.ToString());
await xmlData.WriteEndElementAsync();