Reputation: 51
I use java google drive api v2(1.22.0), and when I try to get list files from "Shared With Me" folder using drive.files.list and query "sharedWithMe and trashed = false" it returns files from "My Drive". I was try same code on several accounts, all works fine except one user with empty "Shared With Me"(it does't meter other account also has empty this folder but works fine). I got same affect by using example on https://developers.google.com/drive/v2/reference/files/list
Upvotes: 2
Views: 1146
Reputation: 51
For my case help query "sharedWithMe and trashed = false and not 'me' in owners". So Google remember that file was shared ant this option is independent. And also looks like this query is a same like in google view for "Shared With Me" folder. P.S. If any found some other case for my question, please attach a link))
Upvotes: 3