mirror of
https://gitlab.com/sbrl/GalleryShare.git
synced 2018-06-12 22:45:16 +00:00
Bugfix: No '/' prefixed to directory names in DisplayName
This commit is contained in:
parent
1d60b9b085
commit
9adadd491d
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue