Converts a relative path to an absolute path.
Get-FullPath [-RelativePath] <String> [<CommonParameters>]
Unlike Resolve-Path
, this function does not check whether the path exists. It just converts relative paths to absolute paths.
You can't pass truly relative paths to this function. You can only pass rooted paths, i.e. the path must have a drive at the beginning.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
RelativePath | String | The path to resolve. Must be rooted, i.e. have a drive at the beginning. | true | false |
Get-FullPath -RelativePath 'C:\Projects\Carbon\Test\..\Carbon\FileSystem.ps1'
Returns C:\Projects\Carbon\Carbon\FileSystem.ps1
.
Get-FullPath -RelativePath 'C:\Projects\Carbon\..\I\Do\Not\Exist'
Returns C:\Projects\I\Do\Not\Exist
.