Added more sophisticated path handling to Inventory. cd command path handling is now available to all TestClient commands. Resolved [TC-12]. Helpers.Implode replaced by String.Join.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2077 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -27,14 +27,14 @@ namespace OpenMetaverse.TestClient
|
||||
string target = String.Empty;
|
||||
for (int ct = 0; ct < args.Length; ct++)
|
||||
target = target + args[ct] + " ";
|
||||
target = target.TrimEnd();
|
||||
|
||||
// initialize results list
|
||||
List<InventoryBase> found = new List<InventoryBase>();
|
||||
try
|
||||
{
|
||||
// find the folder
|
||||
found = Client.InventoryStore.InventoryFromPath(target.Split('/'), Client.InventoryStore.RootFolder);
|
||||
|
||||
found = Client.InventoryStore.InventoryFromPath(target, Client.CurrentDirectory, true);
|
||||
if (found.Count > 0)
|
||||
{
|
||||
InventoryBase item = found[0];
|
||||
|
||||
Reference in New Issue
Block a user