26 lines
1.5 KiB
PowerShell
26 lines
1.5 KiB
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$cacheRoot = "$env:LOCALAPPDATA\TectonicProject\Tectonic\cache"
|
|
$bn = Join-Path $cacheRoot 'bundles'
|
|
|
|
Write-Output '=== [N1] cache/bundles entries NOT under data/ (manifests?) ==='
|
|
Get-ChildItem $bn -Recurse -Depth 1 -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.Name -ne 'data' -and -not $_.FullName.Contains('\data\') } |
|
|
Select-Object @{n='Rel';e={$_.FullName.Substring($bn.Length+1)}}, PSIsContainer, Length |
|
|
Format-Table -AutoSize | Out-String -Width 180 | Write-Output
|
|
|
|
Write-Output '=== [N2] data/<hash> files matching ^lm (the lmodern tree on disk) ==='
|
|
Get-ChildItem (Join-Path $bn 'data') -Recurse -File -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.Name -match '^lm' } |
|
|
Select-Object @{n='File';e={$_.Name}}, Length |
|
|
Sort-Object File | Format-Table -AutoSize | Out-String -Width 140 | Write-Output
|
|
|
|
Write-Output '=== [N3] fontconfig/palladio/urw files anywhere in cache ==='
|
|
Get-ChildItem $cacheRoot -Recurse -File -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.Name -match 'fontconfig|palladio|urw|ptm' } |
|
|
Select-Object @{n='Rel';e={$_.FullName.Substring($cacheRoot.Length+1)}}, Length |
|
|
Format-Table -AutoSize | Out-String -Width 180 | Write-Output
|
|
|
|
Write-Output '=== [N4] cache top-level + formats ==='
|
|
Get-ChildItem $cacheRoot -Depth 1 -ErrorAction SilentlyContinue |
|
|
Select-Object @{n='Rel';e={$_.FullName.Substring($cacheRoot.Length+1)}}, PSIsContainer |
|
|
Format-Table -AutoSize | Out-String -Width 160 | Write-Output |