Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Generates the hole path through traversaling all parents
 /// </summary>
 /// <returns></returns>
 public string GetFullPath() => (ParentDirectoryNode?.GetFullPath() + '\\' + Directory).Trim('\\');