Ejemplo n.º 1
0
 private void ProcessPath(Path path)
 {
     if (Leaf.IsPresent)
     {
         WritePath(path.GetChildNameOrSelfIfNoChild().RemoveDrive());
     }
     else if (IsAbsolute.IsPresent)
     {
         WriteObject(PathIsAbsolute(path));
     }
     else if (NoQualifier.IsPresent)
     {
         WritePath(path.RemoveDrive());
     }
     else if (Qualifier.IsPresent)
     {
         WritePath(GetDriveOrThrow(path));
     }
     else
     {
         WritePath(path.GetParentPath(string.Empty));
     }
 }