diff --git a/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs b/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs index debcbfb10b..61343a024f 100644 --- a/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs +++ b/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs @@ -315,5 +315,20 @@ namespace OpenSim.Framework.Communications.Cache return folderList; } + + public int TotalCount + { + get + { + int total = Items.Count; + + foreach (InventoryFolderImpl folder in SubFolders.Values) + { + total = total + folder.TotalCount; + } + + return total; + } + } } }