As from GAS References, we take terrific pleasure of the following method:
It is - or better it sounds - extremely useful, in case the script exceeds the time limit granted by quotas. But, but, but:
- "resume" from where? Which in other words means
- where are tokens, that "are generally valid for one week", stored? Which would lead to the subsequent question
- how to recall the continuationToken string to use as parameter of DriveApp.continueFolderIterator()?
I am aware of the possibility to use User Properties, as suggested elsewhere, but I would avoid to play such solution since User Properties have a more general purpose.