Files
libremetaverse/libsecondlife-cs/examples/TestClient/Commands/Inventory/DeleteFolderCommand.cs
John Hurliman 58040e48f8 * Moved ViewerEffect handling to AvatarManager
* Reworked the teleport system to get rid of bad Tick and Sleep calls and clean up callback confusion
* Removed the DownloadInventory() command and replaced all usage of it with fixme notes as it was found to be potentially dangerous to simulators
* Updated the VS2005 solution file with openjpegnet and VisualParamGenerator
* Removed a Sleep call from NetworkManager
* Moved SecondLife.Debug boolean to SecondLife.Settings.Debug

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@902 52acb1d6-8a22-11de-b505-999d5b087335
2007-01-25 13:02:20 +00:00

43 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Xml;
using System.Xml.Serialization;
using libsecondlife;
using libsecondlife.Packets;
using libsecondlife.InventorySystem;
namespace libsecondlife.TestClient
{
public class DeleteFolderCommand : Command
{
public DeleteFolderCommand(TestClient testClient)
{
Name = "deleteFolder";
Description = "Deletes a folder from inventory.";
}
public override string Execute(string[] args, LLUUID fromAgentID)
{
return "Broken until someone fixes me";
//string target = String.Empty;
//for (int ct = 0; ct < args.Length; ct++)
// target = target + args[ct] + " ";
//target = target.TrimEnd();
//Client.Inventory.DownloadInventory();
//InventoryFolder folder = Client.Inventory.getFolder(target);
//if (folder != null)
//{
// folder.Delete();
// return "Folder " + target + " deleted.";
//}
//return "Unable to find: " + target;
}
}
}