From f23856a575bf6c72de56a1eee60eca72f1724df0 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Thu, 11 Dec 2008 20:36:46 +0000 Subject: * Add get child folder test --- .../Communications/Cache/InventoryFolderImpl.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs') diff --git a/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs b/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs index ad55c44..933d40a 100644 --- a/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs +++ b/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs @@ -107,6 +107,23 @@ namespace OpenSim.Framework.Communications.Cache } /// + /// Get a child folder + /// + /// + /// The folder if it exists, null if it doesn't + public InventoryFolderImpl GetChildFolder(UUID folderID) + { + InventoryFolderImpl folder = null; + + lock (SubFolders) + { + SubFolders.TryGetValue(folderID, out folder); + } + + return folder; + } + + /// /// Removes the given child subfolder. /// /// -- cgit v1.1