0

I know this is duplicate for this thread - How do I search sub-folders and sub-sub-folders in Google Drive?

But I am intrested if anyone gets similar result as me. I am trying to get all folders from my drive, and I am using PHP. When setting parameters for first API call, part of it looks like this:

$parameters['q'] = "mimeType='application/vnd.google-apps.folder' and trashed=false"; 

As I understood answers, this should return all folders from my GDrive? Because it doesn't. It returns some sub-sub folders. My pageSize limit is set to maximum value. Has anyone had similar problem?

StrahinjaL
  • 45
  • 1
  • 7

1 Answers1

2

The file.list method has a max page size of 100. This means that if there is more then 100 rows you will need to get the next page by submitting the quest again supplying the pageToken

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449