public async Task Tree(string path) { var root = await Hosting.GetItemsTreeAsync(path); var formatter = new NodeFormatter('='); Console.WriteLine(formatter.BuildNodes(root.Select(n => n.Name))); }
public void BuildNodes(Node <OAuthCredentials> root, StreamWriter writer) { if (root == null) { throw new ArgumentNullException(nameof(root)); } formatter.BuildNodes(root.Select(c => c.SerializeToString()), writer); }