aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/Local
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Communications/Local')
-rw-r--r--OpenSim/Region/Communications/Local/LocalInventoryService.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/Communications/Local/LocalInventoryService.cs b/OpenSim/Region/Communications/Local/LocalInventoryService.cs
index 35eb89a..77a2a6e 100644
--- a/OpenSim/Region/Communications/Local/LocalInventoryService.cs
+++ b/OpenSim/Region/Communications/Local/LocalInventoryService.cs
@@ -100,6 +100,23 @@ namespace OpenSim.Region.Communications.Local
100 } 100 }
101 } 101 }
102 102
103 public override InventoryFolderBase RequestNamedFolder(LLUUID userID, string folderName)
104 {
105 List<InventoryFolderBase> folders = RequestFirstLevelFolders(userID);
106 InventoryFolderBase requestedFolder = null;
107
108 //need to make sure we send root folder first
109 foreach (InventoryFolderBase folder in folders)
110 {
111 if (folder.name == folderName)
112 {
113 requestedFolder = folder;
114 break;
115 }
116 }
117
118 return requestedFolder;
119 }
103 120
104 /// <summary> 121 /// <summary>
105 /// Send the given inventory folder and its item contents back to the requester. 122 /// Send the given inventory folder and its item contents back to the requester.