pydrive list files in folder code example
Example 1: pydrive list folders
f = self.drive.ListFile({"q": "mimeType='application/vnd.google-apps.folder' and trashed=false"}).GetList()
for folder in f:
print(folder['title'])
Example 2: pydrive list shared folder
file_list = drive.ListFile({'q': "'<folder ID>' in parents and trashed=false"}).GetList()