Google Drive REST API. Root listing

google-drive-api

Solution

I suggest to use `files.list` API method. Set `q` parameter on:

'root' in parents and trashed = false

What it means you can find on the page: Search for Files. You can test API methods on the APIs Explorer Drive API v2 page.

Please, see also:

- Getting a list of files by folder on Drive SDK.

Problem

I need listing all files of 'My Drive', but only the files and folders which are immediately below, not all the ones in the Drive at once. Thanks for your help, Mario

Original source