I'm creating an application that needs to return all the files created, but when using the gapi.client.drive.files.list api, it only returns the files created by this api and not those created by the user himself directly from the drive, can anyone help me? The code I'm using is this:
function showList(callback) {
gapi.client.drive.files.list({
// q: "name contains '" + file_prefix + "'",
fields: 'nextPageToken',
spaces: 'drive',
//corpus: 'domain',
// auth: this.auth
}, function(err, response) {
if(err) {
console.log('Error : findFiles failed. ' + err);
callback(err);
} else {
callback(null,response.files);
}
});
}