feat: refactor file paths to use %LOCALAPPDATA% for user data and logs (#829)

This commit is contained in:
Jeffrey
2026-10-17 00:17:44 +02:00
committed by GitHub
parent 25c3999be5
commit dd1f934174
6 changed files with 21 additions and 15 deletions
+2
View File
@@ -27,6 +27,8 @@ function Save-ToFile {
)
try {
$directory = Split-Path -Parent $FilePath
if ($directory) { [void][System.IO.Directory]::CreateDirectory($directory) }
$Config | ConvertTo-Json -Depth $MaxDepth | Set-Content -Path $FilePath -Encoding UTF8 -ErrorAction Stop
return $true
}