Add automated test at the opensim 'api' level to check that a given item goes to the correct directory

Also removes some mono compiler warnings
This commit is contained in:
Justin Clark-Casey (justincc)
2010-08-24 16:50:31 +01:00
parent c72d298202
commit 289c21099c
11 changed files with 170 additions and 32 deletions

View File

@@ -268,15 +268,22 @@ namespace OpenSim.Services.InventoryService
public InventoryFolderBase GetFolderForType(UUID userID, AssetType type)
{
// m_log.DebugFormat("[INVENTORY SERVICE]: Looking for folder type {0} for user {1}", type, userID);
InventoryFolderBase root = m_Database.getUserRootFolder(userID);
if (root != null)
{
List<InventoryFolderBase> folders = RequestSubFolders(root.ID);
foreach (InventoryFolderBase folder in folders)
{
{
if (folder.Type == (short)type)
{
// m_log.DebugFormat(
// "[INVENTORY SERVICE]: Found folder {0} type {1}", folder.Name, (AssetType)folder.Type);
return folder;
}
}
}