public void T27_FileCRUD()
    {
        Commands.CreateItemCommand CreateCommand = new Commands.CreateItemCommand();
        CreateCommand.in_Pathname   = "TestFile1";
        CreateCommand.in_IsFolder   = false;
        CreateCommand.in_CreatePath = true;
        this._FileSystem.Create(CreateCommand);
        Console.Out.WriteLine("Created '" + CreateCommand.out_Item.Pathname + "'.");
        this.WriteItemSummary(CreateCommand.out_Item);

        Commands.ReadItemCommand ReadCommand = new Commands.ReadItemCommand();
        ReadCommand.in_Pathname = CreateCommand.out_Item.Pathname;
        this._FileSystem.Read(ReadCommand);
        Console.Out.WriteLine("Read '" + ReadCommand.out_Item.Pathname + "'.");
        this.WriteItemSummary(ReadCommand.out_Item);

        Commands.UpdateItemCommand UpdateCommand = new Commands.UpdateItemCommand();
        UpdateCommand.in_Pathname  = ReadCommand.out_Item.Pathname;
        UpdateCommand.in_Item      = ReadCommand.out_Item;
        UpdateCommand.in_Item.Name = "RenamedTestFile1";
        this._FileSystem.Update(UpdateCommand);
        Console.Out.WriteLine("Updated '" + UpdateCommand.out_Item.Pathname + "'.");
        this.WriteItemSummary(UpdateCommand.out_Item);

        Commands.DeleteItemCommand DeleteCommand = new Commands.DeleteItemCommand();
        DeleteCommand.in_Pathname = UpdateCommand.out_Item.Pathname;
        DeleteCommand.in_IsFolder = false;
        this._FileSystem.Delete(DeleteCommand);
        Console.Out.WriteLine("Deleted '" + DeleteCommand.in_Pathname + "'.");

        return;
    }
    public void T25_UpdateFile()
    {
        Commands.ReadItemCommand ReadCommand = new Commands.ReadItemCommand();
        ReadCommand.in_Pathname = "TestFile1";
        this._FileSystem.Read(ReadCommand);
        if (ReadCommand.out_Item == null)
        {
            throw new Exception("Folder '" + ReadCommand.in_Pathname + "' does not exist.'");
        }

        Commands.UpdateItemCommand UpdateCommand = new Commands.UpdateItemCommand();
        UpdateCommand.in_Pathname  = ReadCommand.out_Item.Pathname;
        UpdateCommand.in_Item      = ReadCommand.out_Item;
        UpdateCommand.in_Item.Name = "RenamedTestFile1";
        this._FileSystem.Update(UpdateCommand);

        UpdateCommand.in_Pathname  = "RenamedTestFile1";
        UpdateCommand.in_Item      = UpdateCommand.out_Item;
        UpdateCommand.in_Item.Name = "TestFile1";
        this._FileSystem.Update(UpdateCommand);

        Console.Out.WriteLine("Updated '" + UpdateCommand.out_Item.Pathname + "'.");
        this.WriteItemSummary(UpdateCommand.out_Item);
        return;
    }
 public void T24_ReadFile()
 {
     Commands.ReadItemCommand ReadCommand = new Commands.ReadItemCommand();
     ReadCommand.in_Pathname = "TestFile1";
     this._FileSystem.Read(ReadCommand);
     Console.Out.WriteLine("Read '" + ReadCommand.out_Item.Pathname + "'.");
     this.WriteItemSummary(ReadCommand.out_Item);
     return;
 }
    public void T22_ListFileItems()
    {
        Commands.ListEntriesCommand ListCommand = new Commands.ListEntriesCommand();
        ListCommand.in_Pathname     = "";
        ListCommand.in_IncludeFiles = true;
        this._FileSystem.List(ListCommand);

        Console.Out.WriteLine("ListFiles2 for '" + ListCommand.in_Pathname + "' found " + ListCommand.out_ItemList.Count.ToString() + " item(s).");
        foreach (FileSystemItem item in ListCommand.out_ItemList)
        {
            Commands.ReadItemCommand ReadCommand = new Commands.ReadItemCommand();
            ReadCommand.in_Pathname = item.Pathname;
            this._FileSystem.Read(ReadCommand);
            this.WriteItemSummary(ReadCommand.out_Item);
        }

        return;
    }