feat: refactor file paths to use %LOCALAPPDATA% for user data and logs

This commit is contained in:
Jeffrey
2026-10-16 00:17:26 +02:00
parent 4079b276e9
commit c10c957184
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
}