I am trying to list all the folders in my Google Drive, via the Google Drive API.
I copied the code from the API guide as follows:
var request = gapi.client.drive.files.list({
'pageSize': 10,
'fields': "nextPageToken, files(id, name)",
});
This code returns ALL the files in my directory. How would I change the code to only include folders?
Thanks