title: Google Drive API How can I find the path of a file?
body: <p>I'm trying to find the path of a file when fetching a file list with the Google Drive API.</p>
  
  <p>Right now, I'm able to fetch file properties (currently only fetching checksum, id, name, and mimeType):</p>
  
  <pre><code>results = globalShares.service.files().list(pageSize=1000,corpora='user',fields='nextPageToken, files(md5Checksum, id, name, mimeType)').execute()
  items = results.get('files',[])
  nextPageToken = results.get('nextPageToken',False)
  for file in items:
      print("===========================================================")
      pp.pprint(file)
  print(str(len(items)))
  print(nextPageToken)
  </code></pre>
  
  <p><a href="https://developers.google.com/drive/api/v3/reference/files/list#parameters" rel="nofollow noreferrer">List documentation</a> (parameters fed to the list() method)</p>
  
  <p><a href="https://developers.google.com/drive/api/v3/reference/files" rel="nofollow noreferrer">Files documentation</a> (properties returned with each file)</p>