14 lines
479 B
PowerShell
14 lines
479 B
PowerShell
$templatesDir = "d:\gdfhbfgdbnbdfbdf\typogenie\src-tauri\templates"
|
|
$files = Get-ChildItem -Path $templatesDir -Recurse -Filter *.json
|
|
|
|
foreach ($file in $files) {
|
|
try {
|
|
$content = Get-Content -Path $file.FullName -Raw
|
|
$json = $content | ConvertFrom-Json
|
|
Write-Host "VALID: $($file.Name)" -ForegroundColor Green
|
|
} catch {
|
|
Write-Host "INVALID: $($file.Name)" -ForegroundColor Red
|
|
Write-Host "Error: $($_.Exception.Message)"
|
|
}
|
|
}
|