(client)
return results
Fetches all the files.

  Args:
    client: Authorized drive api client.
  Returns:
Fetches all the files.
Fetches all the files .
def fetch_all_metadata(client):
  """Fetches all the files.

  Args:
    client: Authorized drive api client.
  Returns:
  """
  results = []
  page = ended = None
  while not ended:
    resp = client.files().list(pageToken=page, maxResults=100,
        q='trashed=false',
        fields='nextPageToken,items(id,md5Checksum,title,alternateLink,quotaBytesUsed)'
        ).execute()
    page = resp.get('nextPageToken')
    ended = page == None
    for item in resp['items']:
      if 'md5Checksum' in item:
        results.append(item)
    print 'Fetched: {}'.format(len(results))
  return results
def fetch_all_metadata ( client ) : results = [ ] page = ended = None while not ended : resp = client . files ( ) . list ( pageToken = page , maxResults = 100 , q = 'trashed=false' , fields = 'nextPageToken,items(id,md5Checksum,title,alternateLink,quotaBytesUsed)' ) . execute ( ) page = resp . get ( 'nextPageToken' ) ended = page == None for item in resp [ 'items' ] : if 'md5Checksum' in item : results . append ( item ) print 'Fetched: {}' . format ( len ( results ) ) return results