mirror of
https://gitlab.com/sbrl/GalleryShare.git
synced 2018-06-12 22:45:16 +00:00
Fix file / directory preview path issue.
This commit is contained in:
parent
548c4829c6
commit
dd10edb281
1 changed files with 2 additions and 2 deletions
|
@ -170,7 +170,7 @@ namespace GalleryShare
|
|||
await xmlData.WriteStartElementAsync(null, "ListingEntry", null);
|
||||
await xmlData.WriteAttributeStringAsync(null, "Type", null, "Directory");
|
||||
|
||||
await xmlData.WriteElementStringAsync(null, "Name", null, directoryName.Substring(servingDirectory.Length));
|
||||
await xmlData.WriteElementStringAsync(null, "Name", null, "/" + directoryName.Substring(servingDirectory.Length));
|
||||
await xmlData.WriteElementStringAsync(null, "ItemCount", null, Directory.GetFileSystemEntries(directoryName).Length.ToString());
|
||||
|
||||
// TODO: Write out thumbnail url
|
||||
|
@ -182,7 +182,7 @@ namespace GalleryShare
|
|||
await xmlData.WriteStartElementAsync(null, "ListingEntry", null);
|
||||
await xmlData.WriteAttributeStringAsync(null, "Type", null, "File");
|
||||
|
||||
await xmlData.WriteElementStringAsync(null, "Name", null, filename.Substring(servingDirectory.Length));
|
||||
await xmlData.WriteElementStringAsync(null, "Name", null, "/" + filename.Substring(servingDirectory.Length));
|
||||
|
||||
await xmlData.WriteEndElementAsync();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue