public void VisitParent(ParentDirectoryNode node, GlobVisitorContext context) { // Back up one level. var last = context.Pop(); node.Next.Accept(this, context); // Push the segment back so pop/push // count remains balanced. context.Push(last); }
/// <summary> /// Generates the hole path through traversaling all parents /// </summary> /// <returns></returns> public string GetFullPath() => (ParentDirectoryNode?.GetFullPath() + '\\' + Directory).Trim('\\');