Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Drive REST API. Root listing

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

like image 534
user1714889 Avatar asked Mar 22 '13 13:03

user1714889


1 Answers

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.
like image 67
Michał Ziober Avatar answered Sep 26 '22 10:09

Michał Ziober