I have this code:
rtclient.listFiles = function(callback) {
  gapi.client.load('drive', 'v2', function() {
    gapi.client.drive.files.list({
      'maxResults': 20
    }).execute(callback);
  });
}
which I try to assign to an array using this code:
var arrayStore;
rtclient.listFiles(function(x) {
              for(var i in x.items) {
              arrayStore.push(x.items[i].id);
            }})
However, the array arrayStore is not storing anything.  This is using the Google Drive API and I am trying to access some file IDs to iterate over.  Can anyone help?
 
     
    