Zmiter
Zmiter

Reputation: 328

Cannot get Google Drive App Data folder content using query anymore

For some reason the following Android app code

com.google.api.services.drive.Drive drive;
...
drive.files().list().setQ("mimeType='application/vnd.google-apps.folder' and 'appdata' in parents").execute().getItems();

started returning empty list since May 14. This code was returning my custom folders for more than 1 year before. I can see my App Data content still exists through

https://drive.google.com/drive/my-drive > Settings > Manage Apps.

Any ideas what is wrong?

Upvotes: 3

Views: 655

Answers (2)

Dan McGrath
Dan McGrath

Reputation: 42018

This was a caching issue specifically for App Folder content that affected list queries.

The issue has now been rectified. Thanks for reporting.

Writes were not affected.

Upvotes: 1

Antronak
Antronak

Reputation: 11

The issue still occurs. LIST method doesn't work for newly created files in Application Data Folder. After few hours LIST method returns those files.

Upvotes: 1

Related Questions