void GetChildItems(string path, INodeFactory nodeFactory, bool recurse) { var context = CreateContext(path, recurse ); var children = nodeFactory.GetNodeChildren(context); WriteChildItem(path, recurse, children); }