Skip to content

Instantly share code, notes, and snippets.

@karlgluck
Created May 14, 2022 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlgluck/1d4e48dbf75217d7a598704d72762eb4 to your computer and use it in GitHub Desktop.
Save karlgluck/1d4e48dbf75217d7a598704d72762eb4 to your computer and use it in GitHub Desktop.
One-liner to create a path if it doesn't exist
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