From 082e1c73f73942fb243889b6da463ac4a97baffa Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Mon, 18 Nov 2019 11:02:19 -0800 Subject: [PATCH] Create directory if missing. --- Utilities/Publish.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Utilities/Publish.ps1 b/Utilities/Publish.ps1 index 14d2d6b9..66af985c 100644 --- a/Utilities/Publish.ps1 +++ b/Utilities/Publish.ps1 @@ -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 }