title: Accessing folders, subfolders and subfiles using PyDrive (Python)
body: <p>I have the following code from the PyDrive documentation that allows access to top level folders in my Google Drive. I would like to access all of the folders, subfolders, and files from it. How would I go about doing this (I just started using PyDrive)?    </p>
  
  <pre><code>#!/usr/bin/python
  # -*- coding: utf-8 -*-
  from pydrive.auth import GoogleAuth
  from pydrive.drive import GoogleDrive
  
  
  gauth = GoogleAuth()
  gauth.LocalWebserverAuth() # Creates local webserver and auto handles authentication
  
  #Make GoogleDrive instance with Authenticated GoogleAuth instance
  drive = GoogleDrive(gauth)
  
  #Google_Drive_Tree = 
  # Auto-iterate through all files that matches this query
  top_list = drive.ListFile({'q': "'root' in parents and trashed=false"}).GetList()
  for file in top_list:
      print 'title: %s, id: %s' % (file['title'], file['id'])
      print "---------------------------------------------"
  
  #Paginate file lists by specifying number of max results
  for file_list in drive.ListFile({'q': 'trashed=true', 'maxResults': 10}):
      print 'Received %s files from Files.list()' % len(file_list) # &lt;= 10
      for file1 in file_list:
          print 'title: %s, id: %s' % (file1['title'], file1['id'])
  </code></pre>
  
  <p>I have checked the following page <a href="https://stackoverflow.com/questions/14753914/how-to-list-all-files-folders-subfolders-and-subfiles-of-a-google-drive-folder">How to list all files, folders, subfolders and subfiles of a Google drive folder</a> , which seemed to be the answer I was looking for but the code is not there anymore.</p>