Create directory if missing.

This commit is contained in:
Jared Goodwin 2019-11-18 11:02:19 -08:00
parent 02a06ff5aa
commit 082e1c73f7

View File

@ -140,6 +140,9 @@ Get-ChildItem -Path "$Root\ScreenCast.Win\bin\x64\Release\" -Exclude "*.xml" | C
# Publish Windows GUI App
$PublishDir = "$Root\Server\wwwroot\Downloads\WinDesktop\"
if (!(Test-Path -Path $PublishDir)) {
New-Item -Path $PublishDir -ItemType Directory
}
Get-ChildItem -Path $PublishDir | ForEach-Object {
Remove-Item -Path $_.FullName -Force -Recurse
}