Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
Buckets
2.7.11
private/Resolve-SafePath.ps1
function
Resolve-SafePath
{
param
(
[
Parameter
(
Mandatory
=
$true
)
]
[string]
$Path
)
try
{
return
[System.IO.Path]
::
GetFullPath
(
$Path
)
}
catch
{
throw
"Invalid path '$Path': $_"
}
}