ericyd / gdrive-copy

Web app to copy a Google Drive folder
https://script.google.com/macros/s/AKfycbxbGNGajrxv-HbX2sVY2OTu7yj9VvxlOMOeQblZFuq7rYm7uyo/exec
MIT License
1.58k stars 343 forks source link

Process next page token in leftovers #70

Closed ericyd closed 5 years ago

ericyd commented 5 years ago

Another attempt to fix #67. I believe the issue is occurring when there are leftovers, and the leftovers are processed with time remaining. There is nothing in the script to get the next set of files after the leftovers are processed, therefore it would think it is done before it actually finishes.

Still working on reproducing, but this should be a straight forward fix