Condividi tramite


PathIntrinsics Class

Definition

Exposes the path manipulation and location APIs to the Cmdlet base class.

public ref class PathIntrinsics sealed
public sealed class PathIntrinsics
type PathIntrinsics = class
Public NotInheritable Class PathIntrinsics
Inheritance
PathIntrinsics

Properties

CurrentFileSystemLocation

Gets the current location for the file system provider.

CurrentLocation

Gets the current location.

Methods

Combine(String, String)

Combines two strings with a provider specific path separator.

CurrentProviderLocation(String)

Gets the current location for a specific provider.

GetResolvedProviderPathFromProviderPath(String, String)

Resolves a drive or provider qualified absolute or relative path that may contain wildcard characters into one or more provider-internal paths.

GetResolvedProviderPathFromPSPath(String, ProviderInfo)

Resolves a drive or provider qualified absolute or relative path that may contain wildcard characters into one or more provider-internal paths.

GetResolvedPSPathFromPSPath(String)

Resolves a drive or provider qualified absolute or relative path that may contain wildcard characters into one or more absolute drive or provider qualified paths.

GetUnresolvedProviderPathFromPSPath(String, ProviderInfo, PSDriveInfo)

Converts a drive or provider qualified absolute or relative path that may contain wildcard characters into one a provider-internal path still containing the wildcard characters.

GetUnresolvedProviderPathFromPSPath(String)

Converts a drive or provider qualified absolute or relative path that may contain wildcard characters into one a provider-internal path still containing the wildcard characters.

IsProviderQualified(String)

Determines if the give path is a PowerShell provider-qualified path.

IsPSAbsolute(String, String)

Determines if the given path is a drive-qualified absolute path.

IsValid(String)

Determines if the path is a syntactically and semantically valid path for the provider.

LocationStack(String)

Gets the location stack and all the locations on it.

NormalizeRelativePath(String, String)

Normalizes the path that was passed in and returns the normalized path as a relative path to the basePath that was passed.

ParseChildName(String)

Gets the child name of the specified path.

ParseParent(String, String)

Gets the parent path of the specified path.

PopLocation(String)

Gets the location off the top of the location stack.

PushCurrentLocation(String)

Pushes the current location onto the location stack so that it can be retrieved later.

SetDefaultLocationStack(String)

Sets the default location stack to that specified by the stack ID.

SetLocation(String)

Changes the current location to the specified path.

Applies to