aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-12-11 20:36:46 +0000
committerJustin Clarke Casey2008-12-11 20:36:46 +0000
commitf23856a575bf6c72de56a1eee60eca72f1724df0 (patch)
tree718c0825cae4a9ba99b799363e64ce3aa45d8b7f /OpenSim/Framework/Communications/Cache
parentafter much discussion, and overwhelming +1 on the -dev list, switch the (diff)
downloadopensim-SC_OLD-f23856a575bf6c72de56a1eee60eca72f1724df0.zip
opensim-SC_OLD-f23856a575bf6c72de56a1eee60eca72f1724df0.tar.gz
opensim-SC_OLD-f23856a575bf6c72de56a1eee60eca72f1724df0.tar.bz2
opensim-SC_OLD-f23856a575bf6c72de56a1eee60eca72f1724df0.tar.xz
* Add get child folder test
Diffstat (limited to 'OpenSim/Framework/Communications/Cache')
-rw-r--r--OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs17
1 files changed, 17 insertions, 0 deletions
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
107 } 107 }
108 108
109 /// <summary> 109 /// <summary>
110 /// Get a child folder
111 /// </summary>
112 /// <param name="folderID"></param>
113 /// <returns>The folder if it exists, null if it doesn't</returns>
114 public InventoryFolderImpl GetChildFolder(UUID folderID)
115 {
116 InventoryFolderImpl folder = null;
117
118 lock (SubFolders)
119 {
120 SubFolders.TryGetValue(folderID, out folder);
121 }
122
123 return folder;
124 }
125
126 /// <summary>
110 /// Removes the given child subfolder. 127 /// Removes the given child subfolder.
111 /// </summary> 128 /// </summary>
112 /// <param name="folderID"></param> 129 /// <param name="folderID"></param>