Skip to content

Commit

Permalink
Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Jeffrey committed Jan 3, 2025
1 parent 3d7f602 commit 1bc3f79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EmbroideryCollection-Cleanup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1bc3f79

Please sign in to comment.