files.list method returns a file list response
{
"kind": "drive#fileList",
"nextPageToken": string,
"incompleteSearch": boolean,
"files": [
files Resource
]
}
File list response contains a list of any file resources returned by the request. If there are not returned the files will be an empty list.
By default it does not return a full file resource object a number of fields are null.
{
"kind": "drive#file",
"id": "1x8-vD-XEA5Spf3qp8x2wltablGF22Lpwup8VtxNY",
"name": "Experts Activity Dump go/ExpertsActivities",
"mimeType": "application/vnd.google-apps.spreadsheet"
},
The way around that is to add an optional param of fields=* and then you will get a full file resource object back. This can result in a very large request though.
The file.get method returns a the file resources for that file id that is requested. So you have to pass it a file.id of the file you want to request.
Background info Original release.
In the original release of the Google drive v3. File.list did not work with fields=* it only worked only returned the default fields leaving everything else null. This force us to use a File.get on every file that we need the full response back for. This has been since fixed making it easer and requiring only a single call to the api to get all the properties of the object populated.
The question remains if this was a bug in the beginning or working as intended and they patched it to stop eating all our quota.