Public/Assert-Path.ps1
function Assert-Path { param( [Parameter(Mandatory)][string]$Path, [string]$Message ) If (Test-Path $Path) { Write-Log "Path $Path exists" -Level Debug } Else { Write-Log "Path $Path don't exist" -Level Debug throw "ASSERT::$Message" } } |