Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Sat Apr 18, 2009 4:20 am Post subject: FIX: Why do I see non-folders in Windows Explorer's folder view (left tree) |
|
|
This occurs if the implementation of the NSEFolder.GetChildren method is incorrect. The implementation should be along following lines:
Code: | ArrayList ret = new ArrayList();
// Add folders (NSEFolder-derived objects) only if asked for
if ((e.ChildrenType & ChildrenType.Folders) != 0)
{
ret.Add(folderItem1);
ret.Add(folderItem2);
...
...
}
// Add non-folders (NSEItem-derived objects) only if asked for
if ((e.ChildrenType & ChildrenType.NonFolders) != 0)
{
ret.Add(nonFolderItem1);
ret.Add(nonFolderItem2);
...
...
}
|
|
|