From 1bc3f79593317f651d4007a3ee51f0bdc8aebfb7 Mon Sep 17 00:00:00 2001 From: D Jeffrey <44452180+D-Jeffrey@users.noreply.github.com> Date: Fri, 3 Jan 2025 13:40:55 -0700 Subject: [PATCH] Syntax --- EmbroideryCollection-Cleanup.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EmbroideryCollection-Cleanup.ps1 b/EmbroideryCollection-Cleanup.ps1 index db3c43f..af89410 100644 --- a/EmbroideryCollection-Cleanup.ps1 +++ b/EmbroideryCollection-Cleanup.ps1 @@ -2007,8 +2007,8 @@ function DoCleanCollection { while ($maxtries -gt 0) { $Movelist = @() # - $cleanList = Get-ChildItem -Path $EmbroidDir -Recurse -Directory - | Where-Object { ($_.GetFiles().count -eq 0 -and $_.GetDirectories().count -eq 1) -or ($_.GetFiles().count -eq 1 -and $_.GetDirectories().count -eq 0)} + $cleanList = Get-ChildItem -Path $EmbroidDir -Recurse -Directory | + Where-Object { ($_.GetFiles().count -eq 0 -and $_.GetDirectories().count -eq 1) -or ($_.GetFiles().count -eq 1 -and $_.GetDirectories().count -eq 0)} $cleanList = $cleanList | ForEach-Object -Begin { $stack = [System.Collections.Stack]::new() } -Process { $stack.Push($_) } -End { while ($stack.Count -gt 0) { $stack.Pop() } } if ($cleanList -and -not $proceed) {