mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 07:13:17 +08:00
Super/fallback can toggle view-all (default on); admin/user stay own-only while still seeing unowned system sessions. Add restore/prune helpers so empty-shell cleanup is explicit and recoverable.
14 lines
593 B
PowerShell
14 lines
593 B
PowerShell
$live = 'C:\Users\zhout\.dsh\sessions'
|
|
$bak = 'C:\Users\zhout\.dsh\upgrade-backup-20260914-074633\sessions'
|
|
|
|
Write-Output 'LIVE:'
|
|
Get-ChildItem $live -Directory -ErrorAction SilentlyContinue | ForEach-Object {
|
|
$count = @(Get-ChildItem $_.FullName -Directory -ErrorAction SilentlyContinue).Count
|
|
Write-Output (" {0} => {1}" -f $_.Name, $count)
|
|
}
|
|
|
|
Write-Output 'BACKUP:'
|
|
Get-ChildItem $bak -Directory -ErrorAction SilentlyContinue | ForEach-Object {
|
|
$count = @(Get-ChildItem $_.FullName -Directory -ErrorAction SilentlyContinue).Count
|
|
Write-Output (" {0} => {1}" -f $_.Name, $count)
|
|
}
|