From 3aa47c66f0a0dfee0984735d74db32afe75d56f1 Mon Sep 17 00:00:00 2001 From: Jaap Brasser Date: Wed, 25 Aug 2021 23:18:39 +0200 Subject: [PATCH] =?UTF-8?q?Updated=20to=20support=20=20folders=20with=20do?= =?UTF-8?q?t=20=E2=9D=95=20#783?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rubrik/Public/Start-RubrikDownload.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rubrik/Public/Start-RubrikDownload.ps1 b/Rubrik/Public/Start-RubrikDownload.ps1 index d3eb7ee19..5a119a3a4 100644 --- a/Rubrik/Public/Start-RubrikDownload.ps1 +++ b/Rubrik/Public/Start-RubrikDownload.ps1 @@ -93,7 +93,7 @@ function Start-RubrikDownload Uri = $Uri } - if ($Path -match '\.') { + if ($Path -match '\.' -and (-not (Get-Item -EA 0 -LiteralPath $Path|Where-Object psiscontainer -eq $true))) { $WebRequestSplat.OutFile = $Path } elseif ($Path) { $WebRequestSplat.OutFile = Join-Path $Path (Split-Path -Path $uri -Leaf)