
# Now, using the folder ID gotten above, we get all the files from # however, we know there is only 1 folder with that name, so we just get the id of the 1st item in the list # this gives us a list of all folders with that nameįolderIdResult = folderId.get('files', ) I needed to get (not just list) all the files from a particular folder and perform image adjustments on them, so I used this code: `# First, get the folder ID by querying by mimeType and nameįolderId = drive.files().list(q = "mimeType = 'application/' and name = 'thumbnails'", pageSize=10, fields="nextPageToken, files(id, name)").execute() This actually gets all the files from a particular Google Drive folder (in this case, a folder called “thumbnails”).
