Hi All!
I'm trying to use the various scripts that have been suggested to locate and list all files which have multiple folders as parents in My Drive.
My trouble is, the scripts all run out of quota, just trying to build the list (it never gets to writing anything to the spreadsheet). There are 10's of 1000's of files in my Drive because we converted all our old on-premise servers years ago to Drive.
I've been studying the code samples of CBL and Bruce McPherson's batch processing examples. I believe I understand them generally and could reproduce them, but I'm struggling in my use case.
Is there a way to get a paginated list from the Query function which gives me the files? How can I break it down into smaller chunks which I can process, somehow mark as completed so that the next batch of files can be processed? I don't know if I can depend on the Query function to return the list in the same sequence every time. What key can I use to tell the Query function to start at "Previous Key" and return to me the next 1000 entries (or something like that). I can wait for the list to generate if it has to do it in chunks, even if it takes me several days to accumulate the list running every 5 minutes or something like that. I just don't know how to manage the Drive files list in groups.
Any tips would be really appreciated.
Thanks!
Mike