Skip to content

Commit

Permalink
fix: only delete directories in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
dundee committed Apr 19, 2024
1 parent ef8f8d8 commit b8836d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/remove/parallel.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ func RemoveItemFromDirParallel(dir fs.Item, item fs.Item) error {

// remove all files in the directory in parallel
for _, file := range item.GetFilesLocked() {
if !file.IsDir() {
continue
}

wait.Add(1)
go func(itemPath string) {
concurrencyLimit <- struct{}{}
Expand Down

0 comments on commit b8836d3

Please sign in to comment.