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
requested a review
from a team
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters