TestPathType Enumeration

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Defines the type of paths that can be tested by the Test-Path cmdlet. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

Namespace:   Microsoft.PowerShell.Commands
Assembly:  Microsoft.PowerShell.Commands.Management (in Microsoft.PowerShell.Commands.Management.dll)

public enum TestPathType

Member nameDescription
Any

If the item at the path exists, true will be returned.

Container

If the item at the path exists and is a container, true will be returned.

Leaf

If the item at the path exists and is not a container, true will be returned.

Return to top
Show: