Skip to content

Conversation

@ilyaplot
Copy link
Contributor

@ilyaplot ilyaplot commented Apr 8, 2025

Finder returns a live iterator that updates as files and directories are removed, causing some items to be skipped during deletion. This change converts the iterator to an array using iterator_to_array(), fixing the issue where not all files were deleted in one pass.

Closes googleapis/google-api-php-client-services#6502

Finder returns a live iterator that updates as files and directories are removed,
causing some items to be skipped during deletion. This change converts the iterator
to an array using `iterator_to_array()`, fixing the issue where not all files were
deleted in one pass.

Closes googleapis/google-api-php-client-services#6502
@bshaffer bshaffer merged commit c699405 into googleapis:main Apr 8, 2025
11 of 12 checks passed
@ilyaplot ilyaplot deleted the fix/ISSUE-6502 branch April 8, 2025 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Google\Task\Composer::cleanup doesn't remove all of ignored services

2 participants