I've been trying to figure out what I'm doing wrong or if it's the intended behaviour. I am creating an app that uploads files to the Google Drive using Google Play Services Drive API. Before I create the parent folder I check if the folder already exists. For testing I delete the folder, then check in the app, however the app always detects that the folder is still there.
I have checked isTrashed on the MetaDataBuffer and it's always reported as false.
Is this a syncing issue between app and drive server?
This is the query that I use:
new Query.Builder().addFilter(
Filters.and(
Filters.eq(SearchableField.TRASHED, false),
Filters.eq(SearchableField.MIME_TYPE, MIME_TYPE_FOLDER),
Filters.eq(SearchableField.TITLE, name)
)).build();