diff options
author | gareth | 2007-05-08 00:10:04 +0000 |
---|---|---|
committer | gareth | 2007-05-08 00:10:04 +0000 |
commit | 5b6afeafbc249ba88dcc20d1fbc98ce12418b21b (patch) | |
tree | 78861e5f6ae871d63c83b4ab1cc4c55ea184ed6d /ExportBot/Commands/Inventory/DeleteFolderCommand.cs | |
parent | ZOMG! (diff) | |
download | opensim-SC_OLD-5b6afeafbc249ba88dcc20d1fbc98ce12418b21b.zip opensim-SC_OLD-5b6afeafbc249ba88dcc20d1fbc98ce12418b21b.tar.gz opensim-SC_OLD-5b6afeafbc249ba88dcc20d1fbc98ce12418b21b.tar.bz2 opensim-SC_OLD-5b6afeafbc249ba88dcc20d1fbc98ce12418b21b.tar.xz |
Brought in TestClient code for teh fork
Diffstat (limited to 'ExportBot/Commands/Inventory/DeleteFolderCommand.cs')
-rw-r--r-- | ExportBot/Commands/Inventory/DeleteFolderCommand.cs | 43 |
1 files changed, 43 insertions, 0 deletions
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 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.IO; | ||
4 | using System.Text; | ||
5 | using System.Threading; | ||
6 | using System.Xml; | ||
7 | using System.Xml.Serialization; | ||
8 | |||
9 | using libsecondlife; | ||
10 | using libsecondlife.Packets; | ||
11 | using libsecondlife.InventorySystem; | ||
12 | |||
13 | namespace libsecondlife.TestClient | ||
14 | { | ||
15 | public class DeleteFolderCommand : Command | ||
16 | { | ||
17 | public DeleteFolderCommand(TestClient testClient) | ||
18 | { | ||
19 | Name = "deleteFolder"; | ||
20 | Description = "Deletes a folder from inventory."; | ||
21 | } | ||
22 | |||
23 | public override string Execute(string[] args, LLUUID fromAgentID) | ||
24 | { | ||
25 | return "Broken until someone fixes me"; | ||
26 | |||
27 | //string target = String.Empty; | ||
28 | //for (int ct = 0; ct < args.Length; ct++) | ||
29 | // target = target + args[ct] + " "; | ||
30 | //target = target.TrimEnd(); | ||
31 | |||
32 | //Client.Inventory.DownloadInventory(); | ||
33 | //InventoryFolder folder = Client.Inventory.getFolder(target); | ||
34 | //if (folder != null) | ||
35 | //{ | ||
36 | // folder.Delete(); | ||
37 | // return "Folder " + target + " deleted."; | ||
38 | //} | ||
39 | |||
40 | //return "Unable to find: " + target; | ||
41 | } | ||
42 | } | ||
43 | } \ No newline at end of file | ||