OmniOwl
OmniOwl

Reputation: 5709

Sample program turns up files that aren't in Google Drive?

I just ran the sample program from Google listing all files in my Drive Folder (not on the computer but on the web service) Sample can be found here.

Weird thing is though, the console output is showing a file that was previously there, but is not there any more. I can't really tell why that is. I made the file as a test in the past, then deleted it as another test. But alas the program show it as still there.

enter image description here

This file named "_meta" does no longer exist in my drive and haven't for more than 24 hours. So what gives?

Upvotes: 0

Views: 79

Answers (1)

KKS
KKS

Reputation: 3630

As discussed in comment, read any meta-data information of this file whether the file has been deleted.

Google Drive allows you to access deleted file(s) from drive using its Bin similar to Recycle Bin concept on windows. So, a user may restore a file if needed.

You have discovered that file.Trashed is to be used for any query if you don't want the deleted files in your result.

Please change your condition to file.Trashed == false as it is easy to read compared to file.Trashed != true.

Upvotes: 2

Related Questions