How to retrieve the titles of a folder's children in Google Drive?

Viewed 1843

It appears that listing the children of a folder doesn't actually return the titles of said children according to the Google Drive documentation.

Do I have to query using the id of every single child to determine the name of the file/folder?

Thanks!

EDIT:

Just occurred to me, is the way around this to do a search where the parent id is equal to the folder id I want to see the contents of?

3 Answers

If anyone is still looking at how to get the title of a folders children assuming you already have the children(fileId) id's

function getFileProps(fileId, callback) {
    var request = gapi.client.drive.files.get({
        'fileId': fileId
    });

    request.execute(function (resp) {
           callback(resp);
    });
}
Related