rgroult / google-apis-explorer

Automatically exported from code.google.com/p/google-apis-explorer
Apache License 2.0
0 stars 0 forks source link

drive.files.list returns incorrect files #325

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I don't know how to tell anyone else to reproduce the problem, but this is what 
happens for me:

1. Use drive.files.list to retrieve information about files in a specific 
folder.

2. There will be two jpg files listed.

3. Those jpg files are not in that folder.

A screen shot is attached. Private information has been redacted.

What version of the product are you using? On what operating system?

I am using the API explorer at 
https://developers.google.com/apis-explorer/?hl=en_US#p/drive/v2/drive.files.lis
t

Please provide any additional information below.

I've checked and rechecked that folder and those files in Google drive's web 
interface, using both old and new drive, and using Firefox and Chrome. Those 
files are not in that folder. They used to be many months ago, but they aren't 
now. I've even tried moving those files around to other folders but they still 
always return in that query.

Original issue reported on code.google.com by mikosullivan on 19 May 2015 at 12:30

Attachments:

GoogleCodeExporter commented 8 years ago
Mark this issue as cancelled or resolved or whatever. The problem was that I 
actually have multiple files with those names. The redundant files are in my 
trash but are still marked as being in the folder I'm searching. I'm still 
learning the API, so I didn't know to exclude them.

If you find this post then here was the solution. The following boolean 
expression removes trashed files from your file query:

trashed = false

Original comment by mikosullivan on 21 May 2015 at 11:20