mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-10-17 03:02:04 +00:00
feat: refactor file paths to use %LOCALAPPDATA% for user data and logs
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user