Created
August 28, 2026 19:12
-
-
Save BananaAcid/109fc6db161f7327d850a0c82dea1232 to your computer and use it in GitHub Desktop.
PowerShell: Join-NormalizedPath
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
| # Works like Join-Path, but returns the path without any \..\ and \.\ parts | |
| function Join-NormalizedPath { | |
| $path = Join-Path @args | |
| [System.IO.Path]::GetFullPath($path) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment