Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exclude trashed files when listing files in google drive

I want to list all the files in google drive using google drive api v2 . But I want to exclude files in trash in the list

So I tried

GET https://www.googleapis.com/drive/v2/files?trashed=false

as suggested in the api documentation But still I get files in the trash folder ,Am I missing something ? Or is it a known bug in drive api?

like image 883
Tachyons Avatar asked Apr 27 '15 09:04

Tachyons


1 Answers

Problem was with query syntax, proper query parameter was

GET https://www.googleapis.com/drive/v2/files?q=trashed%3Dfalse
like image 186
Tachyons Avatar answered Oct 15 '22 00:10

Tachyons