Home>

I want to get a folder in a drive using Python's Pydrive, but I can't.
The code is below.

date_folder = drive.ListFile ({'q':'title = "{}" and "{}" in parents and trashed = false'.format ('date','parent folder ID')}). GetList () [0]


The directory I want to get has the following structure, and I want to make it a program that gets a folder with a name that matches the date entered in the code.

big_folder-2020-10-27
|-2020-10-28
|-2020-10-29

The big_folder is in a shared folder, and these folders are created by another person.
It recognizes the big_folder folder and folders created by yourself in big_folder, but not folders created by another person in big_folder.

How can I recognize a folder created by another person in big_folder?

The scope is as follows.

  • https://www.googleapis.com/auth/drive.install
  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/spreadsheets