I have a method that lists all directories in a given folder... using foreach:
foreach (UnifiedDirectory subDirectory in directory.Directories)
{
if (subDirectory.QueryDistinctAccess(AccessLevel.Read))
{
writer.WriteLine("");
writer.Write(
DirectoryFormat,
HttpUtility.HtmlEncode(subDirectory.Name));
ListDirectories(subDirectory, writer);
writer.WriteLine("");
}
}
I would like to be able to reverse the order (they are now automatically listed in alphabetic order - the way they are ordered in the filemanager)... Is this possible in some kind of easy way to reverse the order (descending - with a UnifiedDirectory)?
Hi!
I have a method that lists all directories in a given folder... using foreach:
I would like to be able to reverse the order (they are now automatically listed in alphabetic order - the way they are ordered in the filemanager)... Is this possible in some kind of easy way to reverse the order (descending - with a UnifiedDirectory)?