nascleanup + autoThumbs: flatten indexer layout, SMB rm, recursive tmp

This commit is contained in:
2026-03-21 15:41:59 -06:00
parent 2de53c9685
commit 11ea28a187
8 changed files with 8461 additions and 51 deletions
+15
View File
@@ -0,0 +1,15 @@
param(
[Parameter(Mandatory = $true)]
[string] $Root
)
if (-not (Test-Path -LiteralPath $Root)) { exit 0 }
$dirs = @(Get-ChildItem -LiteralPath $Root -Recurse -Directory -Filter 'eaDir_tmp' -ErrorAction SilentlyContinue |
Sort-Object { $_.FullName.Length } -Descending)
foreach ($d in $dirs) {
try {
Remove-Item -LiteralPath $d.FullName -Recurse -Force
Write-Host "Removed: $($d.FullName)"
} catch {
Write-Host "Failed: $($d.FullName)"
}
}