aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/mass test client/Commands/Inventory/DeleteFolderCommand.cs
blob: 081ff86ba53f94a48bce294109eb525b38f1819e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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;
		}
	}
}