Created
February 12, 2019 18:56
-
-
Save jdharmon/2347af2b753e480b881b8621ebe89e47 to your computer and use it in GitHub Desktop.
PowerShell Join-Url
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Join-Url([string[]]$parts) { | |
return ($parts | % { $_.Trim('/') } | ? { $_ }) -join '/' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment