public void T21_ListFiles() { Commands.ListEntriesCommand ListCommand = new Commands.ListEntriesCommand(); ListCommand.in_Pathname = ""; ListCommand.in_IncludeFiles = true; this._FileSystem.List(ListCommand); Console.Out.WriteLine("ListFiles for '" + ListCommand.in_Pathname + "' found " + ListCommand.out_ItemList.Count.ToString() + " item(s)."); foreach (FileSystemItem item in ListCommand.out_ItemList) { this.WriteItemSummary(item); } return; }
public void T12_ListFolderItems() { Commands.ListEntriesCommand ListCommand = new Commands.ListEntriesCommand(); ListCommand.in_Pathname = ""; ListCommand.in_IncludeFolders = true; ListCommand.in_IncludeLinks = true; this._FileSystem.List(ListCommand); Console.Out.WriteLine("ListFolders2 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; }