I would like to get a list of files and folders in the root directory without having to sort through all the files. Is there a query that would do this?
标签:
google-drive-api
相关问题
- How can I force all files in a folder to be owned
- google-drive can't get push notifications
- File upload via REST v3 appears as “Untitled”
- PyDrive Upload and Remove
- Android: Google Drive onActivityResult() getting r
相关文章
- How can my Google Apps Script be run by others the
- Google Drive raw data?
- how to programmatically download a public Google D
- Is it possible to send HTTP request from inside Go
- Google Drive API is not working after Proguard obf
- How to style a Google Doc using Google Drive API?
- Google Drive Realtime API OAuth2 Refresh Errors (P
- keep getting kicked out my google login when using
The root folder can also be addressed with a special alias named "root", so you can get all files and folders in the root with the following query:
Remember to escape the URL if not using one of the client libraries (they automatically take care of it).
For more details about the search query language, check https://developers.google.com/drive/search-parameters
This code will display all files and folder of your ROOT DIRECTORY. just copy and paste this code and you will get all your root's file and folder.
Google drive v3 Reference the documentation helps to create DriveClient object.
Run this below method in the background thread(Android).
Note: Required Scope permission "DriveScopes.DRIVE"