list dimention of folder code example
Example 1: get list of folders in directory python
import os
my_list = os.listdir('My_directory')
Example 2: 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'])