Ensure folders are sorted

This commit is contained in:
Michael Delpach 2016-02-01 21:44:26 +08:00
parent 9461880bf9
commit ee1384b3cd
2 changed files with 2 additions and 1 deletions

View file

@ -65,6 +65,7 @@ public FolderInfo(string folderPath)
public void Update()
{
Folders.ForEach(x => x.Update());
Folders.Sort((x, y) => x.FolderName.CompareTo(y.FolderName));
Size = Folders.Sum(x => x.Size) + Files.Sum(x => x.Length);
TotalFileCount = Files.Count + Folders.Sum(x => x.TotalFileCount);
TotalFolderCount = Folders.Count + Folders.Sum(x => x.TotalFolderCount);

View file

@ -5,7 +5,7 @@
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("ShareX Team")]
[assembly: AssemblyProduct("ShareX")]
[assembly: AssemblyProduct("ShareX Directory Indexer")]
[assembly: AssemblyCopyright("Copyright (c) 2007-2016 ShareX Team")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]