Resolves a file path to an absolute provider path.
Resolve-AtlassianFilePath [-Path] <String> [<CommonParameters>]
Resolves relative and provider paths into a fully qualified file-system path.
$folder = Join-Path -Path ([System.IO.Path]::GetTempPath()) -ChildPath 'atlassianps-config-example'
New-Item -Path $folder -ItemType Directory -Force | Out-Null
$filePath = Join-Path -Path $folder -ChildPath 'sample.txt'
Set-Content -LiteralPath $filePath -Value 'sample'
Push-Location -Path $folder
try {
Resolve-AtlassianFilePath -Path './sample.txt'
}
finally {
Pop-Location
}
Resolves a relative file name to its absolute path.
Path to a file that should be resolved.
Type: String
Parameter Sets: (All)
Aliases: PSPath, LiteralPath
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
System.String
System.String