Created
May 14, 2022 19:57
-
-
Save karlgluck/1d4e48dbf75217d7a598704d72762eb4 to your computer and use it in GitHub Desktop.
One-liner to create a path if it doesn't exist
This file contains 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
if (-not (Test-Path $Path)) { New-Item $Path -ItemType Directory | Out-Null } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment