From 5b6afeafbc249ba88dcc20d1fbc98ce12418b21b Mon Sep 17 00:00:00 2001 From: gareth Date: Tue, 8 May 2007 00:10:04 +0000 Subject: Brought in TestClient code for teh fork --- .../Commands/Inventory/DeleteFolderCommand.cs | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 ExportBot/Commands/Inventory/DeleteFolderCommand.cs (limited to 'ExportBot/Commands/Inventory/DeleteFolderCommand.cs') diff --git a/ExportBot/Commands/Inventory/DeleteFolderCommand.cs b/ExportBot/Commands/Inventory/DeleteFolderCommand.cs new file mode 100644 index 0000000..ddbb86c --- /dev/null +++ b/ExportBot/Commands/Inventory/DeleteFolderCommand.cs @@ -0,0 +1,43 @@ +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; + } + } +} \ No newline at end of file -- cgit v1.1