From d22cf1cb2343fc53e5e7255d15a8125e94a86280 Mon Sep 17 00:00:00 2001 From: hmmwhatsthisdo Date: Tue, 23 Jul 2024 20:04:57 -0700 Subject: [PATCH] Enable creation of ApplicationData folder if it doesn't exist yet --- JiraPS/JiraPS.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JiraPS/JiraPS.psm1 b/JiraPS/JiraPS.psm1 index 9c45c76a..e3635f07 100644 --- a/JiraPS/JiraPS.psm1 +++ b/JiraPS/JiraPS.psm1 @@ -23,7 +23,7 @@ if (!("System.Net.Http" -as [Type])) { #endregion Dependencies #region Configuration -$script:serverConfig = ("{0}/AtlassianPS/JiraPS/server_config" -f [Environment]::GetFolderPath('ApplicationData')) +$script:serverConfig = ("{0}/AtlassianPS/JiraPS/server_config" -f [Environment]::GetFolderPath('ApplicationData', 'Create')) if (-not (Test-Path $script:serverConfig)) { $null = New-Item -Path $script:serverConfig -ItemType File -Force