我正在尝试自动从 Google Drive 共享文件夹下载文件。文件夹的内容每天都在变化。该文件夹将共享给拥有该文件夹链接的任何人。
我的问题是,除非我在 Google Drive 中打开新文件,否则查询不会返回我尚未打开的新文件。
folder_id = 'xxxx...xxx'
results = drive_service.files().list(q=f"parents in '{folder_id}' and trashed = false", fields="nextPageToken, files(id, name)").execute()
Run Code Online (Sandbox Code Playgroud)
有没有办法列出我尚未打开的共享文件夹中的文件?
我试图否定 sharedWithMe 字段,但它不起作用。