fix: convert Finder lazy iterator to array before deletion by ilyaplot · Pull Request #2663 · googleapis/google-api-php-client

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

@ilyaplot requested a review from a team

April 8, 2025 21:10

bshaffer